Re: [R-pkg-devel] using devtools::install_github() when curl is a dependency

2020-06-06 Thread Gregory Jefferis
Have you tried setting R_REMOTES_NO_ERRORS_FROM_WARNINGS=TRUE I have feeling that is a warning promoted to an error by the remotes package. Similarly have you tried updating the curl package manually with install.packages after loading it in an R session? Best, Greg. Sent from my iPhone >

Re: [R-pkg-devel] Package write access for storing new files

2019-12-06 Thread Dr Gregory Jefferis
data download outside tempdir(). Best, Greg. On 6 Dec 2019, at 10:45, Rainer M Krug wrote: Thanks for the tip with rappdirs. I am just not sure, how I should handle the questions, as it should also run in a shiny application? On 6 Dec 2019, at 10:12, Gregory Jefferis wrote: I use

Re: [R-pkg-devel] Package write access for storing new files

2019-12-06 Thread Gregory Jefferis
I use rappdirs to construct a platform appropriate consistent package download directory. But for CRAN I believe you will need to obtain some kind of user confirmation at least once to allow this behaviour. Best, Greg. Sent from my iPhone > On 6 Dec 2019, at 08:43, Rainer M Krug wrote: > > H

Re: [R-pkg-devel] [Rd] Making a package CITATION file from BibTeX

2019-05-29 Thread Dr Gregory Jefferis
list. All the best, Greg. On 29 May 2019, at 23:46, Achim Zeileis wrote: On Thu, 30 May 2019, Dr Gregory Jefferis wrote: Dear Colleagues, I would like to provide a CITATION file for my package nat.nblast [1]. I have the correct citation in BibTeX format [2]. How can I convert this BibT

Re: [R-pkg-devel] Starter Help

2019-02-18 Thread Dr Gregory Jefferis
work was still required. Best wishes, Greg. -- Gregory Jefferis, PhD Division of Neurobiology MRC Laboratory of Molecular Biology Francis Crick Avenue Cambridge Biomedical Campus Cambridge, CB2 OQH, UK http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis http://jefferislab.org http

Re: [R-pkg-devel] referring to a package data object by two names

2017-10-09 Thread Gregory Jefferis
> landmark <- latestLandmark() > > > Regards, > Berry > > > From: R-package-devel <mailto:r-package-devel-boun...@r-project.org>> on behalf of Gregory Jefferis > mailto:jeffe...@gmail.com>> > Sent: Sunday, October 8, 2017 14:45 > To: Michael Dew

Re: [R-pkg-devel] referring to a package data object by two names

2017-10-08 Thread Gregory Jefferis
Dear Michael, Many thanks for writing. > Do any of the suggestions in section 1.5.3 of Writing R Extensions "Load > hooks" work? I thought I had tried all the various permutations in .onLoad but at your prompting I tried some more and this seems to work: .onLoad <- function (libname, pkgname)

[R-pkg-devel] referring to a package data object by two names

2017-10-08 Thread Gregory Jefferis
one suggest a workaround that does not involve saving a third redundant rda object into the package's data folder? I have placed a toy example package on GitHub: https://github.com/jefferis/testdataalias With many thanks, Greg Jefferis. -- Gregory Jefferis, PhD Division of Neurobiology

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-12-31 Thread Dr Gregory Jefferis
Dear Duncan, On 31 Dec 2015, at 0:28, Duncan Murdoch wrote: On 30/12/2015 4:42 PM, Dr Gregory Jefferis wrote: On 30 Dec 2015, at 21:11, Duncan Murdoch wrote: I wasn't being clear there. I want to have rgl example code (e.g. plot3d statements) in my documentation * that's not e

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-12-30 Thread Dr Gregory Jefferis
) # this is a heuristic to determine if we are running on CRAN CRAN=toupper(Sys.getenv("_R_CHECK_INSTALL_DEPENDS_")) %in% c("TRUE", "YES", "1") if(!interactive() && is.null(getOption('rgl.useNULL')) && (DEVTOOLS_CRAN || CRAN)){

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-12-30 Thread Dr Gregory Jefferis
Dear Duncan, On 8 Oct 2015, at 22:10, Duncan Murdoch wrote: On 08/10/2015 4:41 PM, Dr Gregory Jefferis wrote: [snip] I have a package which imports rgl i.e. rgl is loaded on package startup. A number of examples (not tests) use rgl features and I do not want these to be run on CRAN. Is

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-10-08 Thread Dr Gregory Jefferis
not want these to be run on CRAN. Is there a way to configure rgl.useNULL to handle this situation? Many thanks, Greg. -- Gregory Jefferis, PhD Division of Neurobiology MRC Laboratory of Molecular Biology Francis Crick Avenue Cambridge Biomedical Campus Cambridge, CB2 OQH, UK http://www2.mr

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-08-16 Thread Dr Gregory Jefferis
script e.g. test-all.r. The exception that I've noticed is that if you are using Rstudio + devtools + testthat, the Test Package menu item seems to ignore test-all.r. Best, Greg. -- Gregory Jefferis, PhD Tel: +44 1223 267048 Division of Neurobiology MRC Laboratory of Mole

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-08-16 Thread Dr Gregory Jefferis
er to have them run. Many thanks for any suggestions, Greg. -- Gregory Jefferis, PhD Tel: +44 1223 267048 Division of Neurobiology MRC Laboratory of Molecular Biology Francis Crick Avenue Cambridge Biomedical Campus Cambridge, CB2 OQH, UK http://www2.mrc-lmb.cam.ac.uk/group-l

Re: [R-pkg-devel] CRAN and CMake

2015-06-09 Thread Gregory Jefferis
> On 9 Jun 2015, at 22:08, Gábor Csárdi wrote: > > Thanks! I just looked at it, but it seems that it actually requires an > external system cmake. I am trying to put cmake itself into a package. This one: https://github.com/stnava/cmaker I remember now there is another cmaker! Best, Greg.

Re: [R-pkg-devel] CRAN and CMake

2015-06-09 Thread Gregory Jefferis
> On 9 Jun 2015, at 21:54, Gábor Csárdi wrote: > > I think you will need to declare it as a system requirement, e.g. like > this package: > https://github.com/cran/qtbase/blob/master/DESCRIPTION > > But of course I cannot say for sure that this is still accepted on CRAN. > > FWIW I was experi