Skip to content
Prev 3848 / 12125 Next

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

For what it's worth, the recommendation to use `tempfile()` is very
confusing to R users.

Often users (particularly new users) jump directly to examples when
reading documentation and when you have these more complicated
examples they do not realize they can just use a simple string
literal.

See https://github.com/tidyverse/readr/issues/635 for an issue where
multiple users explicitly request examples which do _not_ use
`tempfile()`.
On Fri, May 3, 2019 at 7:59 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: