On 08/05/2019 7:16 a.m., Boris Steipe wrote:
Have you considered putting the explicit case into a comment? Something like ...
# For output to a CSV file, we would assign: myCSV <- "myResults.csv"
# ... but for this example we will use the value of tempfile() as the file name:
myCSV <- tempfile()
Have you considered putting the explicit case into a comment? Something like ...
# For output to a CSV file, we would assign: myCSV <- "myResults.csv"
# ... but for this example we will use the value of tempfile() as the file name:
myCSV <- tempfile()
results <- doSomething(x, csvFile = myCSV, ...
On 07/05/2019 6:44 p.m., Uwe Ligges wrote:
On 07.05.2019 19:57, Duncan Murdoch wrote:
On 06/05/2019 12:16 p.m., Jim Hester wrote:
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
read
On 07.05.2019 19:57, Duncan Murdoch wrote:
On 06/05/2019 12:16 p.m., Jim Hester wrote:
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 m
I find the idea of using setwd in examples disturbing, because I try to avoid
using setwd at all as a way to delegate my choice of working directory to the
operating system actions taken when starting R. In other words, I recommend to
beginners that they start R in their working directory and l
I agree that setwd(), tempdir(), etc. clutter up examples. At the
same time, I respect the CRAN policy - it's conservative approach has
helped us avoid a wild-west working environment. One approach that
might help bring some standardization, instead of each package
developer rolls their own, and a
On 06/05/2019 12:16 p.m., Jim Hester wrote:
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 th
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 retriev
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
On 03/05/2019 6:33 p.m., Jarrett Phillips wrote:
Hello,
My R package has a function with an argument to specify whether numerical
results should be outputted to a CSV file.
CRAN policy stipulates verbatim that
Packages should not write in the user’s home filespace (including
clipboards), nor a
On 04.05.2019 00:33, Jarrett Phillips wrote:
Hello,
My R package has a function with an argument to specify whether numerical
results should be outputted to a CSV file.
CRAN policy stipulates verbatim that
Packages should not write in the user’s home filespace (including
clipboards), nor an
Hello,
My R package has a function with an argument to specify whether numerical
results should be outputted to a CSV file.
CRAN policy stipulates verbatim that
Packages should not write in the user’s home filespace (including
clipboards), nor anywhere else on the file system apart from the R
se
12 matches
Mail list logo