Re: [R-pkg-devel] Slow down of as.POSIXct() when converting numeric data with origin specified

2025-01-29 Thread Enrico Schumann
nt > You might consider using `.POSIXct`: time <- Sys.time() time <- as.numeric(seq(time, time + 50, by = 0.01)) print(system.time(A <- as.POSIXct(time))) print(system.time(B <- as.POSIXct(time, origin = "1970-01-01"))) print(sy

Re: [R-pkg-devel] NOTE or Information?

2023-11-28 Thread Enrico Schumann
ting documentation. Is this a bug in > rlang and the mask part of the message will go away > when it is fixed? > > Thanks, Göran > A `%||%` operator has been added to R-devel, and hence the warning about masking: https://github.com/r-devel/r-svn/commit/aa23547f2c5a80752194647c81

Re: [R-pkg-devel] 2 Return values for 2 Functions

2023-09-26 Thread Enrico Schumann
}{result D} } "Writing R Extensions" says not to use \describe environments; see https://cran.r-project.org/doc/manuals/R-exts.html#index-_005cvalue : , | Note that \value is implicitly a \describe environment, so | that environment s

Re: [R-pkg-devel] Warning 'as.data.frame.POSIXct()' is deprecated

2023-07-06 Thread Enrico Schumann
rk around? >> >> >> >> I have been trying to find documentation or online discussions about >> >> this >> >> warning but no luck so far. I see R NEWS >> >> <https://cran.r-project.org/doc/manuals/r-release/NEWS.html> mentions >> >> updates to POSIXct related objects several times in the past year but >> >> those >> >> seem to be different issues. >> >> >> >> Best, >> >> >> >> Vincent >> >> >> >> [[alternative HTML version deleted]] >> >> >> >> __ >> >> R-package-devel@r-project.org mailing list >> >> https://stat.ethz.ch/mailman/listinfo/r-package-devel >> > >> > __ >> > R-package-devel@r-project.org mailing list >> > https://stat.ethz.ch/mailman/listinfo/r-package-devel >> > > [[alternative HTML version deleted]] > > __ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Good practice for database with utf-8 string in package

2021-09-17 Thread Enrico Schumann
I characters. However, non-ASCII character strings may not be usable in some locales and may display incorrectly in others." So you could try to use such escapes, e.g. stringi::stri_escape_unicode("Hernández-Montoya") ## [1] "Hern\\u00e1ndez-Montoya" -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] speeding up package code/build/test cycle

2021-06-25 Thread Enrico Schumann
ou feel comfortable with Emacs (I have a hunch you do), then ESS has functionality that might help: http://ess.r-project.org/Manual/ess.html#Developing-with-ESS and in particular http://ess.r-project.org/Manual/ess.html#Namespaced-Evaluation -- Enrico Schum

Re: [R-pkg-devel] CRAN check texi2dvi failure

2021-01-09 Thread Enrico Schumann
nonspace character. But in the vignette it is followed by a space. Maybe using \url in the vignette could fix the error? kind regards Enrico [*] R version 4.0.3 (2020-10-10) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.10 -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] How to remove rJava from Ecfun when it's not called directly or indirectly

2020-10-11 Thread Enrico Schumann
* checking for executable files ... OK > * checking for hidden files and directories ... OK > * checking for portable file names ... OK > * checking whether package 'Ecfun' can be installed ... ERROR > Installation failed. > See > 'C:/Users/spenc/Documents/R/E

Re: [R-pkg-devel] R package which creates a directory in the user home dir

2019-10-17 Thread Enrico Schumann
t download data from somewhere for their users. They simply ask the user (or rather let the user specify) if and where to store the data. kind regards Enrico -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-proj

Re: [R-pkg-devel] duplicate function during build

2016-07-27 Thread Enrico Schumann
;>> problem. >>>> >>>> Question: Has anyone created a script to catch such duplicate functions >>>> from different files during build? I think a warning message that there >>>> are duplicate functions could save some time and effort. Maybe it's >>>> already there, but I saw no obvious message. In this case, I'm only >>>> working in R. >>>> >>>> I've found build.R in the R tarball, which is where I suspect such a >>>> check should go, and I'm willing to prepare a patch when I figure out >>>> how this should be done. However, it seems worth asking if anyone has >>>> needed to do this before. I've already done some searching, but the >>>> results seem to pick up quite different posts than I need. >>>> >>>> Cheers, JN >>>> -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] relation between vignettes and help files

2016-07-13 Thread Enrico Schumann
nette from the > package help. > > Thanks. > Ross Boylan I think this was discussed very recently on R-help: https://stat.ethz.ch/pipermail/r-help/2016-June/439867.html -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Data-generating scripts in R packages

2016-03-23 Thread Enrico Schumann
Best, > Kevin If the script is short, you could wrap it in \dontrun{...} and put it into the Examples section of the Rd file that describes the data. In this way people can quickly find the code when they look up the data's documentation. Kind regards