Re: [R-pkg-devel] Depending on currently unreleased package

2017-05-16 Thread Jim Hester
You can use the `Remotes: ` feature in your DESCRIPTION file (https://github.com/hadley/devtools/blob/master/vignettes/dependencies.Rmd) implemented in devtools to automatically install development versions of packages during development, including on Travis CI. However they will need to be removed

Re: [R-pkg-devel] Subject: cerr, cout, rand, and srand

2017-05-16 Thread Maxime Turgeon
This is well documented in Writing R extensions: - https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing for I/O streams - https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Registering-native-routines for native routine registrations. As for the random number gen

[R-pkg-devel] Subject: cerr, cout, rand, and srand

2017-05-16 Thread Cho, In-Ho [CCE E]
Hi Everyone, My Package did not pass the pre-test with following Note. I am not sure how to fix this problem. Any advice will be really appreciated. Many thanks, In Ho --- * checking compiled code ... NOTE File 'FHDI/libs/i386/FHDI.dll': Found '_ZSt4cerr', possibly from 'std::cer

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Jonathon Love
awesome! works a treat. with thanks jonathon On 16/5/17 21:53, Duncan Murdoch wrote: On 16/05/2017 7:34 AM, Thierry Onkelinx wrote: Try adding requireNamespace("ggplot2") in the function that rely on ggplot2. That's not enough, even though it might fool the test (I haven't checked). Those

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Thierry Onkelinx
Yes. That is what I meant (but too lazy to write). ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To call in the statistician afte

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Duncan Murdoch
On 16/05/2017 7:34 AM, Thierry Onkelinx wrote: Try adding requireNamespace("ggplot2") in the function that rely on ggplot2. That's not enough, even though it might fool the test (I haven't checked). Those functions need to condition on the result, i.e. something like if (requireNamespace("

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Jonathon Love
hi, this doesn't seem to make any difference. but we kinda want the opposite of this. we want the install process to know that ggplot2 isn't required. with thanks jonathon On 16/5/17 21:34, Thierry Onkelinx wrote: > Try adding requireNamespace("ggplot2") in the function that rely on > ggplo

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Dirk Eddelbuettel
On 16 May 2017 at 21:22, Jonathon Love wrote: | yes, sorry, crucial piece of information i forgot to mention. | | ggplot2 *is* in suggests. Suggests != Depends The semantics are messed up around R. If you use Suggests, you really should [1] test for presence. Dirk [1] My preference is for "

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Thierry Onkelinx
Try adding requireNamespace("ggplot2") in the function that rely on ggplot2. ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium To cal

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Jonathon Love
yes, sorry, crucial piece of information i forgot to mention. ggplot2 *is* in suggests. with thanks jonathon On 16/5/17 21:21, Thierry Onkelinx wrote: > Dear Jonathon, > > Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in > the Suggests: > > Best regards, > > Thierry > > i

Re: [R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Thierry Onkelinx
Dear Jonathon, Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in the Suggests: Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance K

[R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE

2017-05-16 Thread Jonathon Love
hi, i'm receiving failures on the winbuilder, with it complaining that ggplot2 can not be found: https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out now there are some mentions of ggplot2 in our code (but none in our NAMESPACE, we always use the full na

Re: [R-pkg-devel] doMC dependency

2017-05-16 Thread Patrick Schratz
Check the pbapply package for cross-platform apply* parallelization. Also 'future' might be worth a look (by Henrik Bengtson) although I haven't taken a closer look at it yet. On 15. May 2017, 21:09 +0200, Uwe Ligges , wrote: > The question is why you want to make doMC an hard install time depe