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

2019-05-08 Thread Boris Steipe
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, ...

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

2019-05-08 Thread Duncan Murdoch
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()