[Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi all, In my package, I define some constant. In the previous version of R, I just define then in /data/constants.R but it seems that it is no longer possible. Instead, I am asked to define them in the namespace. I am not sure to understand what it means. Shall I define them in the NAMESPACE

Re: [Rd] Installation using iconv from glibc

2015-05-15 Thread Prof Brian Ripley
On 15/05/2015 01:19, Smith, Virgil wrote: The R Installation and Administration manual section A.1 states that glibc should provide a suitable iconv function, but I can't get R's configure script to accept/validate iconv on a Linux platform I need to support using glibc 2.20. Is glibc is

[Rd] Error when comparing two variables within a dataframe and print relevant observations

2015-05-15 Thread bw1984
I'm trying to use a nested ifelse condition to compare two lines. Input: Code: Expected Output: Actual Output: Any idea what might be causing this problem? -- View this message in context:

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Hadley Wickham
Make the example print out Sys.getenv() and then manually inspect? Otherwise, you'll need to debug the code by adding print statements. Something clearly is not as you expect, so you need carefully empirically verify your assumptions about the inputs to and environment of the function. Hadley

Re: [Rd] CRAN check for package on Sparc Solaris

2015-05-15 Thread Viechtbauer Wolfgang (STAT)
Yes, I did read that part but it doesn't say anything about who to contact in case one doesn't have access to a Sparc Solaris machine, but one still wants to run the tests on that architecture. As I said, I think I got the issue resolved, but before I resubmit, I would prefer to check this -- I

Re: [Rd] Error when comparing two variables within a dataframe and print relevant observations

2015-05-15 Thread Keith Jewell
On 15/05/2015 05:35, bw1984 wrote: I'm trying to use a nested ifelse condition to compare two lines. Input: Code: Expected Output: Actual Output: Any idea what might be causing this problem? -- View this message in context:

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Charles Determan
Does anyone else have any thoughts about troubleshooting the R CMD check environment? Charles On Wed, May 13, 2015 at 1:57 PM, Charles Determan cdeterma...@gmail.com wrote: Thank you Dan but it isn't my tests that are failing (all of them pass without problem) but one of the examples from the

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Dirk Eddelbuettel
On 15 May 2015 at 07:47, Dirk Eddelbuettel wrote: | | On 15 May 2015 at 07:13, Hadley Wickham wrote: | | Make the example print out Sys.getenv() and then manually inspect? | | On the systems I usesystem(env) is more efficient as it gets you | all at once. Ahh, yes, and I have since

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Dirk Eddelbuettel
On 15 May 2015 at 07:13, Hadley Wickham wrote: | Make the example print out Sys.getenv() and then manually inspect? On the systems I usesystem(env) is more efficient as it gets you all at once. | Otherwise, you'll need to debug the code by adding print statements. | Something clearly

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Martin Morgan
On 05/15/2015 05:05 AM, Charles Determan wrote: Does anyone else have any thoughts about troubleshooting the R CMD check environment? In the pkg.Rcheck directory there is a file pkg-Ex.R. LANGUAGE=en _R_CHECK_INTERNALS2_=1 $(R_HOME)/bin/R --vanilla pkge-Ex.R followed by the usual strategy of

Re: [Rd] Defining Constant variable in a package

2015-05-15 Thread Christophe Genolini
Hi Michael, It works perfectly, thanks a lot! Christophe I'm guessing you just need to define them in /R/constants.R and then export() them from the NAMESPACE. On Fri, May 15, 2015 at 2:32 AM, Christophe Genolini cgeno...@u-paris10.fr mailto:cgeno...@u-paris10.fr wrote: Hi all,

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-15 Thread Simon Urbanek
On May 13, 2015, at 2:28 PM, Henrik Bengtsson henrik.bengts...@ucsf.edu wrote: While at it: 'Makevars' is an R invention (i.e. documentation of it is only available through the R docs), correct? /Henrik Well, it's just a Makefile fragment that gets included along with the rest of the

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Martyn Plummer
The error can be reproduced by running the bigmemory-Ex.R script which you can find in the bigmemory.Rcheck directory, either in batch mode or via source() in an interactive session. It seems that you have underlying memory allocation problems. I can get the script to running by adding gc() calls

[Rd] That 'make check-all' problem with the survival package

2015-05-15 Thread Hin-Tak Leung
'make check-all' for current R has been showing this error in the middle for a few months now - any thought on fixing this? I think cmprsk should be either included in the recommended bundle, or the survival vignette to not depend on it. Having 'make check-all' showing glaring ERROR's for a few

[Rd] Installation error with R-devel

2015-05-15 Thread Therneau, Terry M., Ph.D.
I have a local library with functions that interrogates an institution-specific web API, so is not of interest to anyone outside of Mayo. For some reason the R CMD INSTALL command fails. See below: Build the library, then install it. tmt-local2127% R CMD build dart * checking for file

Re: [Rd] Installation error with R-devel

2015-05-15 Thread Kevin Ushey
It's hard to diagnose this without your package sources / a reproducible example. Shot in the dark: one thing worth checking is that you don't have an entry in your `.Rbuildignore` that's removing files you don't expect it to (maybe that's causing R to strip out the 'doc/index.html' file) Kevin

Re: [Rd] Installation error with R-devel --solved

2015-05-15 Thread Therneau, Terry M., Ph.D.
Bingo! So very obvious once it was pointed out. Thanks, Terry On 05/15/2015 03:05 PM, Kevin Ushey wrote: It's hard to diagnose this without your package sources / a reproducible example. Shot in the dark: one thing worth checking is that you don't have an entry in your `.Rbuildignore`

[Bioc-devel] Package end-of-life policy

2015-05-15 Thread Martin Morgan
Developers -- We are implementing an 'end-of-life' policy for Bioconductor packages, with the current version at http://bioconductor.org/developers/package-end-of-life/ We hope the policy helps to maintain a high-quality repository of actively maintained packages. Keeping a package alive