Re: [R-pkg-devel] R package check stuck on “checking use of S3 registration …”

2021-02-26 Thread Jim Hester
I have recently been having this same issue and traced it to a hang when loading the tcltk package. The 'checking use of S3 registration' part of the check loads all the base and recommended packages and for some reason the tcltk package was hanging during loading on my machine (macOS 11.2.1). I w

[R-pkg-devel] CRAN pre-test Windows machine seems to be in a bad state

2021-02-17 Thread Jim Hester
In particular the magrittr package seems to be broken on the pre-test machine. I submitted a new version of the pkgload package on Friday, again on Tuesday and today (Wednesday). All passed fine on the Debian machine, but failed during installation on the Windows builder. The failure is due to a

Re: [R-pkg-devel] R_MAKEVARS_USER fail to pass down to sub-makes?

2020-06-17 Thread Jim Hester
I think the issue is likely that you seem to be using a relative path to the R_MAKEVARS_USER file, it needs to be an absolute path as the installation is run in a temporary directory not from the directory you call `R CMD INSTALL` from. I observed similar behavior to what you describe when I had th

[R-pkg-devel] CRAN policies with regards to runnable examples

2019-10-01 Thread Jim Hester
CRAN reviewers have somewhat recently been requesting that new submissions have runnable examples. This is in general a good recommendation, but the reviewers seem to apply this policy unconditionally, and there are certain classes of packages where this is either extremely cumbersome or impossible

Re: [R-pkg-devel] CRAN student assistants

2019-05-15 Thread Jim Hester
Sorry first sentence should read I agree that `message()` is ideally preferred, precisely because of the reasons Martin stated, it is easily controlled by the user. On Wed, May 15, 2019 at 9:41 AM Jim Hester wrote: > > I agree that `message()` is in an ideally preferred, precisely becaus

Re: [R-pkg-devel] CRAN student assistants

2019-05-15 Thread Jim Hester
I agree that `message()` is in an ideally preferred, precisely because of the reasons Martin stated, it is easily controlled by the user. Unfortunately, in the real world, the windows R gui console and RStudio (which copied behavior) color messages, and anything on stderr in fact, in red, which co

Re: [R-pkg-devel] Writing to files without altering working directory in R package

2019-05-06 Thread Jim Hester
For what it's worth, the recommendation to use `tempfile()` is very confusing to R users. Often users (particularly new users) jump directly to examples when reading documentation and when you have these more complicated examples they do not realize they can just use a simple string literal. See

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] [Learning] the secret of Win[dows C-backed packages]

2016-08-18 Thread Jim Hester
It has been a few months since I was doing this for the 4.9.3 windows toolchain, but the best way I found IIRC of getting everything working was to install msys2 and use that as the build environment, but put the proper Rtools toolchain first in the PATH. On Mon, Aug 15, 2016 at 9:13 AM, Hadley Wi

Re: [R-pkg-devel] problem with locale-dependent order()

2015-10-14 Thread Jim Hester
Alex, 'with_collate' is one of the functions included in the withr package ( https://cran.rstudio.com/web/packages/withr/). So you could simply write sort_c <- function(x) withr::with_collate("C", sort(x)) The usage semantics and implementation are essentially identical to what Hadley describe