How to solve this error message in rmarkdown?

I'm just starting to learn the rmarkdown package. I do not use Rstudio . I use the standard R environment. What I did was as follows.

I created a new R document. Began to enter a few lines in rmarkdown format. Saved file with the extension Rmd . I saved the file in the working directory. I installed pandoc using the pkg file. I installed the package 'rmarkdown'. Uploaded package. Used the following command to render the Rmd file.

 rmarkdown::render("Untitled.Rmd") 

I get the following error.

Error in tools :: file_path_as_absolute (input): file 'Untitled.Rmd' does not exist

I tried all possible ways, such as specifying the exact path instead of the file name, etc. But nothing happened. I googled the error message and found that no one had a similar error. Can someone help me with this. What am I missing? What does the error message mean?

+13
installation r r-markdown
source share
1 answer

Most of the time file not found errors file not found errors are either a type error or a really missing file (as in your case, the real file is named differently).

To abandon these features:

  1. Copy the full path from your file browser.
  2. Make sure the file exists, inside R you can type:

    file.exists("/fullpath/to/file")

If this returns TRUE and the error persists, then you suspect that something else is happening.

0
source share

All Articles