RTVS icon indicating copy to clipboard operation
RTVS copied to clipboard

Working directory for RMarkdown (incorrectly) defaults to ~\Documents

Open jflam opened this issue 7 years ago • 1 comments

When working with an RMarkdown document, the working directory is set to ~\Documents, rather than the current working directory of the project.

Where this causes confusion is that code that assumes the working directory will function one way when you are executing chunks of code, but will not find the files when you are generating the RMarkdown document.

The best way, I think, is to ensure that the working directory is always set to be that of the current project when rendering the RMarkdown.

jflam avatar Oct 11 '17 17:10 jflam

#2091

MikhailArkhipov avatar Oct 11 '17 18:10 MikhailArkhipov