From h.wickham at gmail.com  Thu Mar 29 23:23:51 2018
From: h.wickham at gmail.com (Hadley Wickham)
Date: Thu, 29 Mar 2018 14:23:51 -0700
Subject: [Rd] Base R examples that write to current working directory
Message-ID: <CABdHhvEDW3nCgwNAXjNcpFtJSM_d=xooX4infq6oTfmctiU3DQ@mail.gmail.com>

Hi all,

Given the recent CRAN push to prevent examples writing to the working
directory, is there any interest in fixing base R examples that write
to the working directory? A few candidates are the graphics devices,
file.create(), writeBin(), writeChar(), write(), and saveRDS(). I'm
sure there are many more.

One way to catch these naughty examples would be to search for
unlink() in examples: e.g.,
https://github.com/wch/r-source/search?utf8=?&q=unlink+extension%3ARd&type=.
Of course, simply cleaning up after yourself is not sufficient because
if those files existed before the examples were run, the examples will
destroy them.

Hadley

-- 
http://hadley.nz



[Rd] Base R examples that write to current working directory
Hadley Wickham