'rio' is not recognized as an internal or external command, operable program or batch file.

I'm getting the following error when I'm trying to load the rio package in an R Markdown file in a code chunk.

Below is the code:

install.packages("rio")
library(rio)

This is the output:
'rio' is not recognized as an internal or external command,
operable program or batch file.

If I run the code in the console it runs correctly.

Does anyone have an idea as to why this would happen?

I managed to find the error. My code chunk was incorrect.
'{rio} '
instead of

'{r rio} '

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.