Re: [R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-15 Thread Merlise Clyde, Ph.D.
Just in case it helps anyone else who struggles to reproduce CRAN valgind checks, I decided to document my steps with R-devel & valgrind at https://github.com/merliseclyde/docker-valgrind has the Dockerfiles to build a container starting with rocker/r-devel and adding supporting files to build

Re: [R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-15 Thread Jonathan Greenberg
Awesome -- the key was the "RD", so for me: docker run -v /Users:/Users --rm -ti rocker/r-devel RD (where, on a Mac, I was binding my Mac's /Users to the Docker's /Users directory) Thanks, all! --j On Wed, Jan 15, 2020 at 2:53 PM Dirk Eddelbuettel mailto:e...@debian.org>> wrote: Jonathan,

Re: [R-pkg-devel] How to create a new project on GitHub?

2020-01-15 Thread Spencer Graves
On 2020-01-15 17:18, Gábor Csárdi wrote: Seems like you skipped step 1? "1. Create a new repo on GitHub: https://github.com/new. Give it the same name as your package, and include the package title as the repo description. Leave all the other options as is, then click Submit." Gabor  

[R-pkg-devel] How to create a new project on GitHub?

2020-01-15 Thread Spencer Graves
Hello, All:   How can I create a new project within my GitHub account (https://github.com/sbgraves237/)?   I'm trying to follow "http://r-pkgs.had.co.nz/git.html": ... Synchronising with GitHub ...     Open a shell, then follow the instructions on the new repo page. They’ll look

Re: [R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-15 Thread Dirk Eddelbuettel
Jonathan, Rocker should be building weekly r-devel and drd (similar, was meant to be a littler "lighter", effectively the same) images. As Merlise noticed, somehow the cronjob push to the Docker Hub build service started to fail -- this sadly happens once in a while so I manually triggered a re

Re: [R-pkg-devel] Proper way to ask a user to set permanent variables?

2020-01-15 Thread Dirk Eddelbuettel
Jonathan, In all but one (maybe two?) of my packages I found relying on options() sufficient. I usually follow the somewhat-common pattern of creating a package-local environment in R/init.R or R/zzz.R. I then fill it with values reflecting options() (often under a tag starting with the package

Re: [R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-15 Thread Merlise Clyde, Ph.D.
Hi Jonathan, rocker/r-devel was updated yesterday afternoon (I was able to pull it using docker on my mac - tested and it works with gcc 9/gfortran 9) and valgrind (many thanks to the rockerstars!) best, Merlise Merlise A Clyde Professor Department of Statistical Science Duke University http:/

[R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-15 Thread Jonathan Greenberg
One of the issues I'm running into is that it seems every time there's a Mac update something gets broken with regards to compilers, making it incredibly challenging to get the development install of R working with Rcpp (which is a requirement for the packages I need to use to check my packages)

Re: [R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread Roberts, David
Thanks Iñaki. I was unaware of rhub. Nice tool! Unfortunately, their debian machine odes not reproduce the error. I have written the R Submission crew to see if I can submit a package with a print(str(mss.10)) call to see the output in the examples log, or if that is an abuse of CRAN submis

Re: [R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread Iñaki Ucar
On Wed, 15 Jan 2020 at 19:26, Roberts, David wrote: > > Dear Bill, Dear Iñaki, > > Thank you both; I'm confident that you are right. I realized a list > or data.frame would generate that error message, but I did not know that > NULL would also do so. > > This means the the error occurred

Re: [R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread Roberts, David
Dear Bill, Dear Iñaki, Thank you both; I'm confident that you are right. I realized a list or data.frame would generate that error message, but I did not know that NULL would also do so. This means the the error occurred in the previous function call which produced an output object t

Re: [R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread William Dunlap
If mss$member is not a matrix you will get that error because setsiz will be NULL. > setsiz <- ncol( 33 ) > sample(1:3, setsiz) Error in sample.int(length(x), size, replace, prob) : invalid 'size' argument Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Jan 15, 2020 at 4:58 AM R

Re: [R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread Iñaki Ucar
On Wed, 15 Jan 2020 at 13:58, Roberts, David wrote: > > Colleagues, > > I have a function (maxsimset) in package optpart that has worked for > at least a decade, passes check --as-cran on my ubuntu-based system, and > builds without errors at win-builder and CRAN windows, but fails at CRAN > d

[R-pkg-devel] error in sample(), invalid 'size' argument

2020-01-15 Thread Roberts, David
Colleagues, I have a function (maxsimset) in package optpart that has worked for at least a decade, passes check --as-cran on my ubuntu-based system, and builds without errors at win-builder and CRAN windows, but fails at CRAN debian (unstable) with the error > mss.test(mss.10,shoshsite$e