Skip to content
Prev 3849 / 12125 Next

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

You cannot go littering the user directories with sample files. Such examples would have to be dontrun, but in order to make some of the example runnable as is you would also need examples that use system.file paradigm. If you store the temporary file name in a variable then the user can retrieve the contents of that file briefly after running the example. Such practice of separating the call to tempfile from your function call also makes it a little clearer that the file name can be created using other methods than via system.file.
On May 6, 2019 9:16:42 AM PDT, Jim Hester <james.f.hester at gmail.com> wrote: