Skip to content
Prev 3838 / 12125 Next

[R-pkg-devel] Writing to files without altering working directory in R package

On 04.05.2019 00:33, Jarrett Phillips wrote:
1. the user who copies the example to the R console does not change to 
the tempdir() and still overwrites files in her/his filespace.

2. And even if you o not wrap this in \dontshow, a user may oinly copy a 
part and then changes the workdir.

Why not simply use tempdir() in the code that writes the file in the 
example?

Best,
Uwe Ligges