[R-pkg-devel] File name error

2017-12-20 Thread Cathy Lee Gierke
I am getting the following error from the auto-checks when trying to submit a package to CRAN: r-devel-linux-x86_64-debian-gcc 3.0.0.2 3.63 56.71 60.34 ERROR

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Göran Broström
On 2017-12-20 18:54, Dirk Eddelbuettel wrote: On 20 December 2017 at 15:32, Göran Broström wrote: | > Or can someone tell me how to install the package using R devel on Linux? | | Good question (which I missed). I do it like this: | | (i) Download and unpack the tarball R-devel in ~/src/ |

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Dirk Eddelbuettel
On 20 December 2017 at 15:32, Göran Broström wrote: | > Or can someone tell me how to install the package using R devel on Linux? | | Good question (which I missed). I do it like this: | | (i) Download and unpack the tarball R-devel in ~/src/ | (ii) ./configure and make | (iii) Start R-devel

Re: [R-pkg-devel] Finding/specifying Installation path of gdal in a travis-ci build

2017-12-20 Thread Lorenzo Busetto
Hi, Adding gdal-bin in before-install appears indeed to solve the issue! Thank you very much for the help! Lorenzo On 20 Dec 2017 13:47, "Benjamin Leutner" wrote: Hi, I can't speak for gdalUtils, but my package uses rgdal and builds well on travis. I'm also installing gdal-bin, which you are

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Blume Christine
Dear all, Thanks a lot for all your suggestions, which I was happy to include. All my coding skills are self-taught so I am especially thankful for suggestions on how to improve the code regarding defensiveness etc.. I have also followed Iñaki's excellent suggestion and checked the package with

Re: [R-pkg-devel] Fwd: R CMD check and strange ## Not run strings

2017-12-20 Thread Tomas Hudik
Hi, thank you guys for fast replies - good ideas and points! They completely makes sense. @Georgi - yes, the rendering is the issue. I personally find \dontrun{} better understandable then rendered ## Not Run. Maybe even better would be to have rendered "r-markdown kind" where you can click on a s

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Göran Broström
On 2017-12-20 15:32, Göran Broström wrote: On 2017-12-20 11:11, Blume Christine wrote: Dear all, [...] Or can someone tell me how to install the package using R devel on Linux? Good question (which I missed). I do it like this: (i) Download and unpack the tarball R-devel in ~/sr

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Göran Broström
On 2017-12-20 11:11, Blume Christine wrote: Dear all, [...] Or can someone tell me how to install the package using R devel on Linux? Good question (which I missed). I do it like this: (i) Download and unpack the tarball R-devel in ~/src/ (ii) ./configure and make (iii) Start R-dev

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Georgi Boshnakov
The package on CRAN doesn't use tempdir() to change directories. Given that the error occurs on some linux-es only, it may be worth a try to submit the package and see if these errors will resurface. It is difficult to debug errors on systems you don't have but some cleanup of your code might

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Göran Broström
On 2017-12-20 12:14, Göran Broström wrote: Christine, the error message from CRAN/r-devel-linux suggests that the error comes from your function nparACT_flex_loop . There your code below is embedded in a loop: for (zz in 1:nofiles) If nofiles == 0 (no found files), this loop is still ex

Re: [R-pkg-devel] Finding/specifying Installation path of gdal in a travis-ci build

2017-12-20 Thread Benjamin Leutner
Hi, I can't speak for gdalUtils, but my package uses rgdal and builds well on travis. I'm also installing gdal-bin, which you are not. Maybe that helps. Here's my (admittedly somewhat messy) travis file: https://github.com/bleutner/RStoolbox/blob/master/.travis.yml Cheers, Benjamin On 12/19/2

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Göran Broström
Christine, the error message from CRAN/r-devel-linux suggests that the error comes from your function nparACT_flex_loop . There your code below is embedded in a loop: for (zz in 1:nofiles) If nofiles == 0 (no found files), this loop is still executed (R is not Fortran). Maybe this is th

Re: [R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Iñaki Úcar
2017-12-20 11:11 GMT+01:00 Blume Christine : > Dear all, > > I guess I need your help again. With debian my package (nparACT) gives an > error message that seems to be related to loading the data: > > Warning in is.na(data$activity) : > is.na() applied to non-(list or vector) of type 'NULL'

[R-pkg-devel] Debian: example file is no longer read correctly

2017-12-20 Thread Blume Christine
Dear all, I guess I need your help again. With debian my package (nparACT) gives an error message that seems to be related to loading the data: Warning in is.na(data$activity) : is.na() applied to non-(list or vector) of type 'NULL' Error in 1:a : argument of length 0 Although I have