Re: [R-pkg-devel] Retrieving versioned csv datasets for use in an R package

2025-02-14 Thread Jan van der Laan
Not an answer, but a request from someone often working behind firewalls and/or machines not connected to the internet. Please have a way to have the package search for the data at some user specified location such as a local directory. Best, Jan On 14-02-2025 15:54, John Clarke wrote:

Re: [R-pkg-devel] Deprecating apparent S3 method, changing name

2024-10-01 Thread Jan van der Laan
On 9/26/24 23:48, Murray Efford via R-package-devel wrote: I am tossing up between (i) appealing to CRAN to allow the submission through with NOTEs until it feels safe to remove the functions with misleading names altogether, and (ii) removing them now and warning users about the new names

Re: [R-pkg-devel] Deprecating apparent S3 method, changing name

2024-09-29 Thread Jan van der Laan
Hmm, the following doesn't seem to trigger warnings or notes in `R CMD check --as-cran` (R 4.4.1; linux) esa <- function(x) { UseMethod("esa") } esa.plot <- function(y) { .Deprecated("esaPlot") esaPlot(y) } esaPlot <- function(y) { message("esaPl

Re: [R-pkg-devel] Order of repo access from options("repos")

2024-04-02 Thread Jan van der Laan
Interesting. That would also mean that putting a company repo first does not protect against dependency confusion attacks (people intentionally uploading packages with the same name as company internal packages on CRAN; https://arstechnica.com/information-technology/2021/02/supply-chain-attack-

Re: [R-pkg-devel] Package required but not available: ‘arrow’

2024-02-22 Thread Jan van der Laan
This error indicates that the arrow package is unavailable on the system where your package is checked. At https://cran.r-project.org/web/checks/check_results_arrow.html you can see that the arrow package is currently not working with clang on fedora an debian. This is not something that you ca

Re: [R-pkg-devel] Question regarding finding the source file location without R-packages outside of R-Studio

2023-11-23 Thread Jan van der Laan
Can't/don't you use relative paths? library(..., lib.loc = "./MyLibrary") Then your project is perfectly portable. The only thing you need to take care of is to run your code from your project directory. In R-studio this is easily done by using projects. Outside of R-studio it depends on ho

Re: [R-pkg-devel] Too many cores used in examples (not caused by data.table)

2023-10-24 Thread Jan van der Laan
You are not the only one; I did the same with some of my examples. Would it be an option to ask for a default R-option, 'max.ncores', that specifies the maximum number of cores a process is allowed to use? CRAN could then require that that examples, tests and vignettes respect this option. Tha

[R-pkg-devel] Issue with CPU time > 2.5 times elapsed time

2023-07-16 Thread Jan van der Laan
I am trying to upload a new version of the reclin2 package, but it fails the pre-tests on Debian with the following message: > * checking examples ... [14s/4s] NOTE > Examples with CPU time > 2.5 times elapsed time > user system elapsed ratio > select_threshold 3.700 0.122

Re: [R-pkg-devel] Read and restore .Random.seed in package

2022-09-19 Thread Jan van der Laan
Sep 2022, Jan van der Laan wrote: I have a function in which I need to draw some random numbers. However, for some use cases, it is necessary that the same random numbers are drawn (when the input is the same) [1]. So I would like to do a set.seed in my function. This could, however, mess up

[R-pkg-devel] Read and restore .Random.seed in package

2022-09-19 Thread Jan van der Laan
I have a function in which I need to draw some random numbers. However, for some use cases, it is necessary that the same random numbers are drawn (when the input is the same) [1]. So I would like to do a set.seed in my function. This could, however, mess up the seed set by the user. So what

Re: [R-pkg-devel] Tests run without --as-cran and not with

2021-10-01 Thread Jan van der Laan
cause weird errors when people have multiple versions of R on their system. Best, Jan On 30-09-2021 18:59, Ivan Krylov wrote: On Fri, 24 Sep 2021 21:48:12 +0200 Jan van der Laan wrote: my tests run fine when run with R CMD check, but not with R CMD check --as-cran <...> pandoc t

[R-pkg-devel] Tests run without --as-cran and not with

2021-09-24 Thread Jan van der Laan
I am trying solve an issue where my tests run fine when run with R CMD check, but not with R CMD check --as-cran. In the tests pandoc is called using system; pandoc then calls R again with a script which is part of the package. The last part seems to fail, see error message below: Running

[R-pkg-devel] Run garbage collector when too many open files

2018-08-07 Thread Jan van der Laan
In my package I open handles to temporary files from c++, handles to them are returned to R through vptr objects. The files are deleted then the corresponding R-object is deleted and the garbage collector runs: a <- lvec(10, "integer") rm(a) Then when the garbage collector runs the file is