[R-pkg-devel] Saving binary files in a package

2015-07-03 Thread Glenn Schultz
Hi All, I am researching the criteria for submitting packages on the R website and using Hadley's packages book as a general guide.  The CRAN policy is that a package cannot write files.  My question is as follows: Does this apply when the package is installed only?  I ask because my package

Re: [R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

2015-07-03 Thread Charles Geyer
valgrind reports no errors On Fri, Jul 3, 2015 at 4:44 PM, Gábor Csárdi wrote: > On Fri, Jul 3, 2015 at 11:40 PM, Charles Geyer > wrote: > [...] > >> * run the file that causes the crash with R CMD check by itself, >> it works, no crash >> * run R CMD check --use-valgrind rcdd, it w

Re: [R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

2015-07-03 Thread Gábor Csárdi
On Fri, Jul 3, 2015 at 11:40 PM, Charles Geyer wrote: [...] > * run the file that causes the crash with R CMD check by itself, > it works, no crash > * run R CMD check --use-valgrind rcdd, it works, no crash > * run R CMD check --use-gct rcdd, it works no crash > * use tools::chec

[R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

2015-07-03 Thread Charles Geyer
I am trying to update a CRAN package (rcdd) for the R-3.3.0 requirements. And I think I have done it. But When I do R CMD check rcdd one of the tests crashes (it says it caught a segfault). I am on an i686 box running Ubuntu 14.04 and the R is the one that comes from http://cran.us.r-

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Dirk Eddelbuettel
On 3 July 2015 at 10:24, Paul Gilbert wrote: | The difficulty with most workarounds suggested so far is the expanded | list of dependencies. My package and quantmod, have had a simple | dependency on download.file in utils. Picking on Dirks suggestion as an | example, it would add a system depe

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Winston Chang
My downloader package was created to deal with https on various platforms: http://cran.r-project.org/web/packages/downloader/index.html The package dates back to before R had libcurl support. It's very simple: if you're on Windows, it uses setInternet2(), which enable https support, and if you'r

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Paul Gilbert
The difficulty with most workarounds suggested so far is the expanded list of dependencies. My package and quantmod, have had a simple dependency on download.file in utils. Picking on Dirks suggestion as an example, it would add a system dependency on libcurl and an R package dependency on curl

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Dirk Eddelbuettel
In random, I do the following, using R 3.2.0 or later with libcurl where installed, and Jeroen's lightweight curl::curl otherwise. getConnection <- function(urltxt, ...) { if (getRversion() >= "3.2.0" && capabilities()["libcurl"]) { url(urltxt, ..., method="libcurl") } else {