Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDo not use dir.exists to retain backwards-compatibility #698
Conversation
|
Good catch. |
|
If compatibility with versions older than 3.2 is important (debian 8.8 still only has 3.1) one might want to turn the |
|
Debian 8.8 is irrelevant as its sources for Rcpp match its sources for base R. Plus, we have the actively supported backport for R available via CRAN. We could use the backports package, or at least Suggests: it if we cared. Team: Anybody see a problem depending on the now-two-year old R 3.2.0 ? |
|
I'm guessing there are a lot of users in enterprise environments who are stuck with R 3.1.x or even R 3.0.x who would appreciate if we could remain compatible with R 3.0.0 and above, so I would be marginally in favor of just using |
|
Yes, that is a good policy. I can look into that while traveling the next two days. Of course I would be equally happy to receive a short PR :) |
The function dir.exists was only added in R 3.2
|
|
|
Yes, we have to remember that we bump our required version we implicitly bump the required version of 92% of CRAN (via recursive dependencies). |
The file R/Attributes.R uses the function
dir.exists()whichwas only added in R 3.2.0. The relevant line was added to
R/Attributes.R between 0.12.5 and 0.12.6.