Re: [Rd] suggested addition to model.matrix

2016-10-03 Thread Fox, John
Dear Spencer, I don't think that the problem of "converting a data frame into a model matrix" is well-defined, because there isn't a unique mapping from one to the other. In your example, you build the model matrix for the additive formula ~ a + b from the data frame matrix containing a and

Re: [R-pkg-devel] Note and warning about subdirectory sizes

2016-10-03 Thread Luck Buttered
Hi all, Thank you for your help. The only original question I am still a bit stuck on is #3. I read a lot about the command today, and tried several approaches, but am unsure how to remove that warning. * checking sizes of PDF files under ‘inst/doc’ ... WARNING ‘gs+qpdf’ made some

[Rd] suggested addition to model.matrix

2016-10-03 Thread Spencer Graves
Hello, All: What's the simplest way to convert a data.frame into a model.matrix? One way is given by the following example, modified from the examples in help(model.matrix): dd <- data.frame(a = gl(3,4), b = gl(4,1,12)) ab <- model.matrix(~ a + b, dd) ab0 <- model.matrix(~.,

Re: [R-pkg-devel] .gitkeep file to prevent folder from erasing when empty

2016-10-03 Thread Luck Buttered
Hello everyone: Inside .Rbuildignore, I put the following line: ^OutputFolder$ However, I notice that the extdata/OutputFolder still disappears if there are no files inside of it. (I am thinking this happens when I push changes to Github). I am trying to keep the extdata/OutputFolder present

Re: [Rd] On implementing zero-overhead code reuse

2016-10-03 Thread Martin Morgan
On 10/03/2016 01:51 PM, Kynn Jones wrote: Thank you all for your comments and suggestions. @Frederik, my reason for mucking with environments is that I want to minimize the number of names that import adds to my current environment. For instance, if module foo defines a function bar, I want my

Re: [Rd] On implementing zero-overhead code reuse

2016-10-03 Thread Dirk Eddelbuettel
Kynn, You appear confused by the meaning of the word "optional". All the things I listed for packages are additional features you _may_ use, not onces that are imposed on you so that they _must_ be used. Lastly, I forgot to mention NAMESPACE support. Which gives pretty much exactly what you

Re: [Bioc-devel] "Feature-freeze" deadline for new packages

2016-10-03 Thread Marcel Ramos
Hi Lukas, We've been backlogged with package reviews. Your package has been assigned to me and I will get to your package as soon as possible. Yes, you will have time to address recommendations/requirements that may arise during the package review process. The deadline for package approval is

Re: [R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Duncan Murdoch
On 03/10/2016 3:04 PM, Roy Mendelssohn - NOAA Federal wrote: Thanks. The tests were not taking extraordinary amounts of time (roughly 30-40s) but they were greater than 10s. I retested with all the tests commented to be not tested, but based on this I have changed it so there is one simple

Re: [R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Brian G. Peterson
In your examples section, do something like this: \donttest{ Sys.sleep(100) # long running example code here } -- Brian On Mon, 2016-10-03 at 10:44 -0700, Roy Mendelssohn - NOAA Federal wrote: > Hi Hadley: > > > You can use \donttest{} to tell CRAN to not run it as part of their > >

Re: [R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Roy Mendelssohn - NOAA Federal
Hi Hadley: > You can use \donttest{} to tell CRAN to not run it as part of their > automated tests. > > Hadley > Thank you for the responses. On the response above, \donttest{} goes where? Is that in each R files where I have an example, or somewhere else? -Roy **

Re: [R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Hadley Wickham
On Mon, Oct 3, 2016 at 12:10 PM, Roy Mendelssohn - NOAA Federal wrote: > Hi All: > > I am working on preparing a package for submission to CRAN, so using devtools > i submitted the package to win-builder. I really appreciate that this has > been setup, so that

[R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Roy Mendelssohn - NOAA Federal
Hi All: I am working on preparing a package for submission to CRAN, so using devtools i submitted the package to win-builder. I really appreciate that this has been setup, so that hopefully any final submission will be smooth. win-builder returned three notes, and I am unclear on them in the

Re: [Rd] grep

2016-10-03 Thread Prof Brian Ripley
On 02/10/2016 17:54, Pi wrote: Hello. It would be great if the grep function in R had the option to use the -m parameter as the linux command does. I guess you mean the non-standard flag of the GNU version of grep (probably but not necessarily as used by Linux). That the POSIX standard for

Re: [Rd] On implementing zero-overhead code reuse

2016-10-03 Thread Kasper Daniel Hansen
On Mon, Oct 3, 2016 at 10:18 AM, wrote: > Hi Kynn, > > Thanks for expanding. > > I wrote a function like yours when I first started using R. It's > basically the same up to your "new.env()" line, I don't do anything > with environmentns. I just called my function "mysource" and

Re: [Rd] On implementing zero-overhead code reuse

2016-10-03 Thread Gabor Grothendieck
Have a look at the CRAN modules package and the import package. On Sun, Oct 2, 2016 at 1:29 PM, Kynn Jones wrote: > I'm looking for a way to approximate the "zero-overhead" model of code > reuse available in languages like Python, Perl, etc. > > I've described this idea in more

Re: [Rd] On implementing zero-overhead code reuse

2016-10-03 Thread frederik
Hi Kynn, Thanks for expanding. I wrote a function like yours when I first started using R. It's basically the same up to your "new.env()" line, I don't do anything with environmentns. I just called my function "mysource" and it's essentially a "source with path". That allows me to find code I

Re: [R-pkg-devel] .gitkeep file to prevent folder from erasing when empty

2016-10-03 Thread Luck Buttered
Hello everyone: Thank you for the helpful suggestions! I moved the directory name to the .Rbuildignore file, as Johannes suggested. Uwe, thanks for bringing up that topic! Yes, I read that we cannot automatically write files to user's filespace (outside of tempdir()). So, there is nothing in

[Bioc-devel] OrgDbs for Bioconductor 3.4

2016-10-03 Thread Obenchain, Valerie
The OrgDb packages have been updated and are available in the devel branch. All have been bumped to version 3.4: org.Ag.eg.db org.At.tair.db org.Bt.eg.db org.Ce.eg.db org.Cf.eg.db org.Dm.eg.db org.Dr.eg.db org.EcK12.eg.db org.EcSakai.eg.db org.Gg.eg.db org.Hs.eg.db org.Mm.eg.db org.Mmu.eg.db

Re: [R-pkg-devel] .gitkeep file to prevent folder from erasing when empty

2016-10-03 Thread Uwe Ligges
On 03.10.2016 08:13, Johannes Ranke wrote: Hi, You can include the .gitkeep file in .Rbuildignore. This will prevent it from being present in the package you test or submit, but git willl still see it and keep the directory. Johannes Am Montag, 3. Oktober 2016, 00:03:33 schrieb Luck

Re: [Rd] library() asks user to accept license of some built-in packages

2016-10-03 Thread Mikko Korpela
On 02/10/16 11:59, Prof Brian Ripley wrote: On 27/09/2016 10:49, Mikko Korpela wrote: When 'getOption("checkPackageLicense")' is 'TRUE' and the user calls 'library(grid)' for the first time, R asks the user to either accept or decline the package license. This should not be necessary as the