Re: [R-pkg-devel] CRAN write to home policy

2018-03-26 Thread Huw Campbell
Probably don't attempt to overwrite or change a user's chosen filenames. I would probably still use tempfile(), but set either the pattern (which gives a prefix) or fileext for a chosen extension. On Tue, Mar 27, 2018 at 10:07 AM, Ogan Mancarci wrote: > Corrected antiSocialSkip6Lines > > anti

Re: [R-pkg-devel] CRAN write to home policy

2018-03-26 Thread Ogan Mancarci
Corrected antiSocialSkip6Lines antiSocialSkip6Lines = function(filename, output = paste0(filename, '_skipped')){ lines = readLines(filename) lines = lines[-(1:6)] writeLines(lines, output) } On 26 March 2018 at 16:06, Ogan Mancarci wrote: > Thanks for the clarification. > > What abo

Re: [R-pkg-devel] CRAN write to home policy

2018-03-26 Thread Ogan Mancarci
Thanks for the clarification. What about a scenario where the user has enter a filename which is used as a seed for the output file. For instance antiSocialSkip6Lines = function(filename, output = paste0(filename, '_skipped')){ lines = readLines(filename) lines = lines[-(1:6)] } Here, th

Re: [R-pkg-devel] CRAN write to home policy

2018-03-26 Thread Uwe Ligges
On 26.03.2018 23:48, Ogan Mancarci wrote: This is from CRAN repository policy: "Packages should not write in the user’s home filespace (including clipboards), nor anywhere else on the file system apart from the R session’s temporary directory (or during installation in the location pointed to

[R-pkg-devel] CRAN write to home policy

2018-03-26 Thread Ogan Mancarci
This is from CRAN repository policy: "Packages should not write in the user’s home filespace (including clipboards), nor anywhere else on the file system apart from the R session’s temporary directory (or during installation in the location pointed to by TMPDIR: and such usage should be cleaned u