Re: [Rd] R 4.4.0 has version of Matrix 1.7-0, but it's not available on CRAN

2024-04-26 Thread Gábor Csárdi
On Fri, Apr 26, 2024 at 1:06 PM Ivan Krylov wrote: > > On Fri, 26 Apr 2024 12:32:59 +0200 > Martin Maechler wrote: > > > Finally, I'd think it definitely would be nice for > > install.packages("Matrix") to automatically get the correct > > Matrix version from CRAN ... so we (R-core) would be

[Rd] R 4.4.0 has version of Matrix 1.7-0, but it's not available on CRAN

2024-04-26 Thread Gábor Csárdi
I don't know if this is a bug, but it is certainly weird. AFAICT R 4.4.0 has Matrix 1.7-0. However, currently CRAN has Package: Matrix Version: 1.6-5 Priority: recommended Depends: R (>= 3.5.0), methods ... (plus another version for R >= 4.5.0 only). Which has some weird consequences, e.g. if

Re: [Bioc-devel] R devel has skipped to 4.5?

2024-04-23 Thread Gábor Csárdi
The release candidate is R 4.4 currently. For Windows it is at https://cran.r-project.org/bin/windows/base/rtest.html, for macos it is at https://mac.r-project.org/ If you use rig (https://github.com/r-lib/rig), you can run rig add next which works on Windows, macOS and Linux G. On Tue, Apr 23,

Re: [Bioc-devel] Possible https://code.bioconductor.org SSL certificate issue

2024-03-06 Thread Gábor Csárdi
t I also see the > issue with curl. > > I'll talk to our IT department about whether this is related to that > change we made - they'll probably be interested in case the issue would > also apply to other sites we host. I'll report back here if we change > things. > > Cheers, >

Re: [Bioc-devel] Possible https://code.bioconductor.org SSL certificate issue

2024-03-06 Thread Gábor Csárdi
> ____ > From: Gábor Csárdi > Sent: Wednesday, 6 March 2024 11:59 > To: bioc-devel@r-project.org > Subject: [Bioc-devel] Possible https://code.bioconductor.org SSL certificate > issue > > Anyone know where to report issues with code.bioconductor

[Bioc-devel] Possible https://code.bioconductor.org SSL certificate issue

2024-03-06 Thread Gábor Csárdi
Anyone know where to report issues with code.bioconductor.org? This is what I see from a vanilla Ubuntu 22.04 (and also from Fedora 40/41, etc.): root@6bff5eca88b0:~# curl https://code.bioconductor.org/ curl: (60) SSL certificate problem: unable to get local issuer certificate More details here:

Re: [Bioc-devel] [EXTERN] Re: R package on Github uses Bioconductor depenencies and cant be installed.

2024-02-28 Thread Gábor Csárdi
While the remotes package still works, https://github.com/r-lib/pak is now a better alternative. It also comes with built-in Bioconductor support: pak::pkg_install("klausjung-hannover/bootGSEA") Gabor On Wed, Feb 28, 2024 at 4:52 PM Martin Morgan wrote: > > Actually BiocManager delegates to

Re: [R-pkg-devel] Question about Clang 17 Error

2023-09-27 Thread Gábor Csárdi
You might be able to reproduce it with the clang17 container here: https://r-hub.github.io/containers/ You can either run it directly or with the rhub2 package: https://github.com/r-hub/rhub2#readme Gabor On Wed, Sep 27, 2023 at 8:29 PM Reed A. Cartwright wrote: > > My package, RBedrock, is now

Re: [R-pkg-devel] help with revdep_check

2023-09-25 Thread Gábor Csárdi
Seems like you are on macOS. You need to install XCode or the Command Line Tools to be able to compile packages with C/C++/Fortran code. Gabor On Mon, Sep 25, 2023 at 7:02 PM William Revelle wrote: > > Dear friends, > I am trying to release a new update to psych and psychTools and am having >

Re: [R-pkg-devel] length() conflict with C++17

2023-06-30 Thread Gábor Csárdi
Yeah, I think both `R_NO_REMAP` and rearranging the includes are good solutions, personally I would do both. There is a container at https://r-hub.github.io/containers/ if you want to make sure that you fixed everything: docker run -ti ghcr.io/r-hub/containers/clang17 bash Or, you can try the

[Rd] https://cran.r-project.org/src/base-prerelease/ is not updating

2023-06-14 Thread Gábor Csárdi
https://cran.r-project.org/src/base-prerelease/ has not updated for about a week now, I guess this is not intentional? Best, Gabor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [R-pkg-devel] Problems with devtools::build() in R

2023-05-16 Thread Gábor Csárdi
Seems like you are on R 4.2.x, so you could try this one: https://github.com/R-macos/gcc-darwin-arm64/releases Gabor On Tue, May 16, 2023 at 7:16 PM Jarrett Phillips wrote: > > Installing from the URL you provide, as well as doing R CMD build HACSim as > suggested by @JeffNewmiller fails. > >

[Rd] Edge case in rm() now failing in R-devel

2023-03-23 Thread Gábor Csárdi
This is new in R-devel: > rm(list = NULL) Error in rm(list = NULL) : invalid first argument It still works in r84020, but does not in r84023, possibly because of r84022 [1]. Gabor [1] https://github.com/wch/r-source/commit/4dc057f5d49d3c0590488100e418e39b68682c95

[Rd] La_library() always returns "" on R-devel?

2023-03-17 Thread Gábor Csárdi
Seems like this in 83986 [1] needs a fix in Lapack.c: if (dladdr((void *) F77_NAME(ilaver), _info)) { char buf[PATH_MAX+1]; char *res = realpath(dl_info.dli_fname, buf); if (res) { SEXP nfo = R_NilValue; if (strstr(res,

Re: [Rd] R-devel does not compile on OpenSUSE 15.4

2023-02-10 Thread Gábor Csárdi
@FCFLAGS_f90@ $< -o $@ +ALL_CFLAGS = $(ALL_CFLAGS_LO) +ALL_FFLAGS = $(ALL_FFLAGS_LO) +ALL_FCFLAGS = $(ALL_FFLAGS_LO) + SOURCES_C = Lapack.c @USE_VECLIB_G95FIX_TRUE@ vecLibg95c.c SOURCES_F = @USE_VECLIB_G95FIX_TRUE@ vecLibg95f.f On Wed, Feb 8, 2023 at 2:03 PM Gábor Csárdi wrote: > > More

[Rd] R-devel does not compile on OpenSUSE 15.4

2023-02-08 Thread Gábor Csárdi
More precisely the built-in Lapack module. AFAICT this is because the f90 files are not compiled with -fpic. My output: make[4]: Entering directory '/tmp/R-devel/src/modules/lapack' gfortran -fpic -g -O2 -msse2 -mfpmath=sse -c dlamch.f -o dlamch.o gfortran -fpic -g -O2 -c dlapack.f -o

[Rd] Compiling R-devel on older Linux distributions, e.g. RHEL / CentOS 7

2023-02-07 Thread Gábor Csárdi
As preparation for the next release, I am trying to compile R devel on RHEL / CentOS 7, which is still supported by RedHat until 2024 June. There are two issues. One is that the libcurl version in CentOS 7 is quite old, 7.29.0, and R devel now requires 7.32.0, since 83715 about a week ago. This

[Rd] Installation failure in non-UTF-8 MBCS locale

2022-10-17 Thread Gábor Csárdi
I am sorry, part of the output is garbled, as the email's encoding is different, but the error is hopefully still clear. This is Ubuntu 20.04, yesterday's R devel or R release, in the zh_CN locale. The zh_CN.UTF-8 locale is fine, and it is a much better option, so I am not sure if this is

Re: [Rd] deparse() and UTF-8 strings

2022-02-22 Thread Gábor Csárdi
r modification itself would > also have the benefit of speeding up parsing of strings without Unicode > escapes. > > Best, > > B. > > > On 2/21/22 5:33 AM, Gábor Csárdi wrote: > > I am wondering if it would make sense to produce \u escaped strings in > > d

[Rd] deparse() and UTF-8 strings

2022-02-21 Thread Gábor Csárdi
I am wondering if it would make sense to produce \u escaped strings in deparse() for UTF-8 input. Currently we have (in R-devel): x <- "G\u00e1bor" Sys.setlocale("LC_ALL", "C") #> [1] "C/C/C/C/C/en_US.UTF-8" deparse(x) #> [1] "\"Gbor\"" charToRaw(deparse(x)) #> [1] 22 47 3c 55 2b 30 30 45 31 3e

Re: [R-pkg-devel] CRAN submission error when running tests in testthat

2021-11-25 Thread Gábor Csárdi
On Thu, Nov 25, 2021 at 11:49 AM Ivan Krylov wrote: > > On Wed, 24 Nov 2021 16:37:44 + (UTC) > Nathan Green via R-package-devel wrote: > > > An irrecoverable exception occurred. R is aborting now ... > > It seems that some of your dependencies which use compiled code > manage to crash the R

Re: [Rd] How can a package be aware of whether it's on CRAN

2021-11-23 Thread Gábor Csárdi
On Tue, Nov 23, 2021 at 8:49 PM Henrik Bengtsson wrote: > > > Is there any reliable way to let packages to know if they are on CRAN, so > > they can set omp cores to 2 by default? > > Instead of testing for "on CRAN" or not, you can test for 'R CMD > check' running or not. 'R CMD check' sets

[Rd] R-patched tarball at https://stat.ethz.ch/R/daily/ outdated

2021-11-17 Thread Gábor Csárdi
Hi all, AFAICT https://stat.ethz.ch/R/daily/R-patched.tar.gz is still R 4.0.5 patched. Probably needs a branch bump. FYI, Gabor __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] LOGNAME env var in the check code

2021-11-16 Thread Gábor Csárdi
While trying to reproduce a NOTE for * checking for new files in some other directories ... NOTE I noticed that the check code uses Sys.getenv("LOGNAME") to query the name of the current user. However on many systems this is not set, so this is the empty string, and then no NOTE is shown.

Re: [R-pkg-devel] What influences the size of the rdb file in a package

2021-10-29 Thread Gábor Csárdi
You probably (accidentally?) put some large object into your package, e.g. a non-function object. But it is hard to say more without seeing the actual code Gabor On Fri, Oct 29, 2021 at 10:07 PM Mosqueira Sanchez, Iago wrote: > > > I am getting warnings in some packages about the size of

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Gábor Csárdi
On Sat, Oct 9, 2021 at 8:52 AM Ivan Krylov wrote: [...] > >* pthread or openmp ? I am particularly concerned about > > interaction with other packages. I have seen that using pthread and > > openmp libraries simultaneously can result in incorrectly pinned > > threads. > > pthreads-based code

Re: [R-pkg-devel] Solaris segfaults

2021-09-15 Thread Gábor Csárdi
Hi Ben, According to https://www.stats.ox.ac.uk/pub/bdr/Rconfig/r-patched-solaris-x86 CRAN's Solaris is also 32 bit. But maybe I am missing something? You can download a Solaris VM (for Virtualbox or VMware) from https://files.r-hub.io/solaris/ It has both 32 bit and 64 bit R (with gcc) and ODS

Re: [Rd] Add keywords to descriptions of R packages

2021-08-21 Thread Gábor Csárdi
FWIW R-hub indexes package metadata, and you can search it online: https://r-pkg.org/search.html?q=time+series or from within R: https://r-hub.github.io/pkgsearch/ Gabor On Sun, Aug 22, 2021 at 12:13 AM beliavsky--- via R-devel wrote: > > It's great that there are almost 20,000 R packages and

Re: [R-pkg-devel] submitting package update failed, since old version out of date (?)

2021-08-17 Thread Gábor Csárdi
I think they are this: * checking CRAN incoming feasibility ... NOTE ... and this: * checking examples ... [76s/77s] NOTE Examples with CPU (user + system) or elapsed time > 5s user system elapsed ordPens-package 54.112 0.044 54.158 ordPCA 18.377 0.004 18.382 G.

Re: [R-pkg-devel] windows and configure scripts

2021-08-06 Thread Gábor Csárdi
On Sat, Aug 7, 2021 at 1:32 AM Timothy Keitt wrote: > > Snarky answers aside, it's still a valid question whether it's not just > cleaner in simple cases to run commands from the Makevars file as described > in the extensions doc. Of course there's no particularly useful examples > there and

Re: [R-pkg-devel] Scrapping R CRAN website from package

2021-07-19 Thread Gábor Csárdi
On Sat, Jul 17, 2021 at 2:21 AM wrote: > > Maciej: > > There are other packages that query the CRAN site (cranlogs, etc.). So it > seems the queries/fetches are generally allowed. I can only find a couple > relevant mentions in the CRAN policies: [...] For the record, the cranlogs package does

Re: [R-pkg-devel] package test returns error when R version 4.1.0

2021-07-05 Thread Gábor Csárdi
I think the Bioconductor error on R-hub is a red herring. The error message is printed, but the actual error is ignored. So this is really only an issue if you do need a Bioconductor package for the check. I think the issue might be that for R-devel CRAN binaries are x64 only, but R CMD INSTALL

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

2021-06-24 Thread Gábor Csárdi
. On Thu, Jun 24, 2021 at 11:32 PM Duncan Murdoch wrote: > > On 24/06/2021 5:22 p.m., Gábor Csárdi wrote: > > On Thu, Jun 24, 2021 at 10:31 PM Duncan Murdoch > > wrote: > > [...] > >> I'm working in RStudio on a Mac, in case that makes any difference. > > >

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

2021-06-24 Thread Gábor Csárdi
On Thu, Jun 24, 2021 at 10:31 PM Duncan Murdoch wrote: [...] > I'm working in RStudio on a Mac, in case that makes any difference. Yes, RStudio probably does its own thing in "Install and restart". The pre-clean of course removes the object files from the package src/ directory, so the next

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

2021-06-24 Thread Gábor Csárdi
On Thu, Jun 24, 2021 at 8:55 PM Duncan Murdoch wrote: [...] > A disadvantage of the devtools method is that a regular build after > load_all() seems to do a full 75 sec build: load_all caches things for > itself, but doesn't put them in the same place as a regular build, so > make doesn't see

[Rd] Non-mutable ALTREP objects

2021-06-08 Thread Gábor Csárdi
Dear all, I have another ALTREP question. In the https://github.com/ALTREP-examples/Rpkg-simplemmap example, it is possible to mmap a file read-write with wrtOK = TRUE. This is a pretty cool use case, one can change the mapped vector (in C), and the change is synchronized with the file, and also

Re: [R-pkg-devel] Finding dependencies (Was: problem with submitting to CRAN (windows))

2021-06-02 Thread Gábor Csárdi
On Wed, Jun 2, 2021 at 1:08 PM Duncan Murdoch wrote: [...] > search. It would be nice to know if there's an automatic way to answer > the question > > "Why does package xxx appear to require yyy?" One quick way with the dev version of pak: install.packages("pak", repos =

Re: [Rd] [External] Possible ALTREP bug

2021-05-28 Thread Gábor Csárdi
luke > > On Fri, 28 May 2021, Gábor Csárdi wrote: > > > I have found some weird SEXP corruption behavior with ALTREP, which > > could be a bug. (Or I could be doing something wrong.) > > > > I have an integer ALTREP vector that calls back to R from the Elt > &g

[Rd] Possible ALTREP bug

2021-05-28 Thread Gábor Csárdi
I have found some weird SEXP corruption behavior with ALTREP, which could be a bug. (Or I could be doing something wrong.) I have an integer ALTREP vector that calls back to R from the Elt method. When this vector is indexed in a lapply(), its first element gets corrupted. Sometimes it's just a

Re: [R-pkg-devel] R vignettes

2021-04-29 Thread Gábor Csárdi
'col_ed' so I am quite perplexed by this > error message. > > I'd appreciate any advice! > > Danielle > > On Thu, Apr 29, 2021 at 11:42 AM Gábor Csárdi wrote: >> >> If you could share a reproducible example with us, and/or you could >> show the full output, th

Re: [R-pkg-devel] R vignettes

2021-04-29 Thread Gábor Csárdi
If you could share a reproducible example with us, and/or you could show the full output, then we could probably help you better. Gabor On Thu, Apr 29, 2021 at 6:29 PM Danielle Maeser wrote: > > Hi Duncan, > > I really appreciate your response. Unfortunately, I am still receiving the > error

[Rd] R does not start on Fedora 34

2021-04-29 Thread Gábor Csárdi
Dear all, Fedora 34 was released two days ago, and with a fresh build of R I get [root@2dba8b3587c1 R-devel]# bin/R ERROR: R_HOME ('/tmp/R-devel') not found on it, coming from https://github.com/wch/r-source/blob/0f0092adf14b8bd17bcce1cac0ee26b928355dab/src/scripts/R.sh.in#L263 Apparently

Re: [R-pkg-devel] Using ggplot2 within another package

2021-04-22 Thread Gábor Csárdi
On Thu, Apr 22, 2021 at 11:19 PM Kevin R. Coombes wrote: [...] > Instead, the vignette says you should > importFrom("rlang", ".data") > in your NAMESPACE, and write > ggplot(myData, aes(x = .data$myX, y = .data$myY)) > > And now my dinosaur question: That looks like using one non-standard

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Gábor Csárdi
remotes::install_github() is a function aimed at developers that need the unreleased version of a package for testing or other dev purposes. In these cases you don't usually need the vignettes. hence the default. Gabor On Wed, Apr 14, 2021 at 8:17 PM Chris Evans wrote: > > Oh no, how

Re: [R-pkg-devel] Another newbie question: vignettes not appearing in GitHub hosted package

2021-04-14 Thread Gábor Csárdi
remotes::install_github() does not build the vignettes by default, you can use the build_opts argument to change this. Gabor On Wed, Apr 14, 2021 at 6:53 PM Chris Evans wrote: > > As ever, my package is https://github.com/cpsyctc/CECPfuns and I am building > withing Rstudio 1.4.1103 > > I am

Re: [Rd] encodeString converts to UTF-8 on Windows R-devel

2021-04-09 Thread Gábor Csárdi
For the record, this was a bug introduced here: https://github.com/wch/r-source/commit/1c149eddee9c6d4b87a987a964a611bf8fe43a74 and fixed today here: https://github.com/wch/r-source/commit/ec0761e63598d38eb5e8ab3fb995da06ab5c91ee G. On Fri, Mar 5, 2021 at 2:52 PM Gábor Csárdi wrote: > >

Re: [R-pkg-devel] Checking on Debian on RHub

2021-04-08 Thread Gábor Csárdi
I mean, here: https://github.com/r-hub/sysreqsdb/commit/e4dd4d6c240407317abb67e156d99ef738a7e73c https://github.com/r-hub/sysreqsdb/commit/88718aad52df59b7e76c2db563991558a168b05e G. On Thu, Apr 8, 2021 at 6:12 PM Gábor Csárdi wrote: > > Should be

Re: [R-pkg-devel] Checking on Debian on RHub

2021-04-08 Thread Gábor Csárdi
work going into RHub - the reason I am having this > > problem is I use RHub to check my submissions. I just keep failing in my > > CRAN submissions on Debian while passing on Windows and Mac, sort of > > frustrating. > > > > -Roy > > > >> On

Re: [R-pkg-devel] Checking on Debian on RHub

2021-04-08 Thread Gábor Csárdi
Hi, Which one is your package? Which spatial package fails? Can you link to an issue in the issue tracker, if there is one? As for an alternative, you can run a Docker container. This works on Linux, Windows and macOS, on any recent enough machine. You can run one of the R-hub containers, e.g.

Re: [R-pkg-devel] rcmdcheck reports wrong version of lattice

2021-03-08 Thread Gábor Csárdi
On Mon, Mar 8, 2021 at 5:45 PM Thierry Onkelinx wrote: > Yes, This was the problem. The recent version of lattice was in my home > folder ~/R/x86_64-pc-linux-gnu-library/4.0 (first element of .libPaths()). > An older version of lattice was in /usr/lib/R/library (last element of > .libPaths()). >

Re: [R-pkg-devel] rcmdcheck reports wrong version of lattice

2021-03-08 Thread Gábor Csárdi
Hi, If you think this is a bug in rcmdcheck, then please report an issue here: https://github.com/r-lib/rcmdcheck/issues My guess is that you have another version of lattice in another library, and that version is used with `--as-cran`. Gabor On Mon, Mar 8, 2021 at 5:18 PM Thierry Onkelinx

[Rd] encodeString converts to UTF-8 on Windows R-devel

2021-03-05 Thread Gábor Csárdi
Which is not necessarily bad news. :) I wonder if this was intended, because I did not find anything about it in the news file. It also breaks a couple of R packages, e.g. desc, probably more. Is this intended? Thanks! This is R-devel from yesterday: > x <- "\xfc" > Encoding(x) <- "latin1" >

Re: [R-pkg-devel] Support for several versions of another package

2021-02-22 Thread Gábor Csárdi
On Sun, Feb 21, 2021 at 3:47 PM Iñaki Ucar wrote: > > Hi, > > Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB > removes function1 and exports function2 for the same functionality. So > pkgA does something along these lines: > > if (utils::packageVersion("pkgB") < 2) { >

Re: [R-pkg-devel] Support for several versions of another package

2021-02-21 Thread Gábor Csárdi
On Sun, Feb 21, 2021 at 6:05 PM Duncan Murdoch wrote: > > On 21/02/2021 9:47 a.m., Iñaki Ucar wrote: > > Hi, > > > > Let's say that pkgA uses pkgB::function1. Then, version 2 of pkgB > > removes function1 and exports function2 for the same functionality. So > > pkgA does something along these

Re: [R-pkg-devel] Cannot reproduce CRAN error (Solaris i386)

2021-02-18 Thread Gábor Csárdi
well. You can also get a Solaris VM, to make it easier to debug the issue on Solaris: https://github.com/r-hub/solarischeck/tree/master/packer Let me know if you don't want to build the VM yourself, and I can give you access to one. Gabor On Thu, Feb 18, 2021 at 10:54 AM Gábor Csárdi wrote: >

Re: [R-pkg-devel] Cannot reproduce CRAN error (Solaris i386)

2021-02-18 Thread Gábor Csárdi
FWIW this code does not give me any warnings or errors on Solaris and R 4.0.4 and the current CRAN version of metapack. Gabor On Thu, Feb 18, 2021 at 1:54 AM Daeyoung Lim wrote: > > Hello, > > I have a package on CRAN called 'metapack' and received a message from > Professor Ripley that the

Re: [R-pkg-devel] How to R CMD build / check using LTO

2021-02-17 Thread Gábor Csárdi
You can use this Docker container: https://hub.docker.com/repository/docker/rhub/debian-gcc-devel-lto It is somewhat old, but chances are that it will reproduce the LTO issues. I'll update it in a minute, anyway. Gabor On Wed, Feb 17, 2021 at 9:33 PM Ivan Krylov wrote: > > On Wed, 17 Feb 2021

Re: [R-pkg-devel] URL in RMarkdown file (libcurl error code 35)

2021-02-17 Thread Gábor Csárdi
I suspect that this is an issue with the CRAN Windows machine, not with your package. If you want to work around it in the incoming checks, you can remove the URL. Maybe it is enough to remove the `https://` from the beginning, but I am not sure. Gabor On Wed, Feb 17, 2021 at 4:33 PM Vincent

Re: [R-pkg-devel] Testing on old R versions

2021-02-01 Thread Gábor Csárdi
On Sun, Jan 31, 2021 at 6:52 PM Duncan Murdoch wrote: > > On 31/01/2021 12:35 p.m., Duncan Murdoch wrote: > > On 31/01/2021 10:57 a.m., Gábor Csárdi wrote: > >> Do you actually experience any problems, if you don't treat this case > >> specially? > > > >

Re: [R-pkg-devel] Testing on old R versions

2021-01-31 Thread Gábor Csárdi
Do you actually experience any problems, if you don't treat this case specially? AFAIR, in most cases this is not a problem in practice. remotes might install the CRAN version of rgl as the dependency of alphashape3d, but `R CMD check` will install and use the local copy of the rgl package for

Re: [R-pkg-devel] Solaris CRAN check error for package {targets}

2021-01-27 Thread Gábor Csárdi
Will, I can help you get a Solaris VM, for VirtualBox or VMware, let me know in private if you need one. OTOH that crash is coming from a requireNamespace("clustermq", quietly = TRUE) call, so it does not seem like it is your fault. You could also try to reproduce this with `rhub::check()` and

Re: [Rd] Demo for linking native routines between R packages

2021-01-09 Thread Gábor Csárdi
On Sat, Jan 9, 2021 at 4:45 PM Joshua Ulrich wrote: [...] > > That said, WRE does list two packages that register native routines > from other packages: > > https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Linking-to-native-routines-in-other-packages > > There are a bunch more, see

Re: [R-pkg-devel] GitHub actions incantation for package living in a subdirectory?

2020-12-24 Thread Gábor Csárdi
You can try to add some `setwd()` calls at the beginning of each step that calls some R command. This is not great of course, much of the GitHub-R tooling just assumes that a repo contains a single package, at the root of the repo. Converting your repos to this structure is painful, but can be

[Rd] R-devel crash

2020-12-18 Thread Gábor Csárdi
FYI. > sessionInfo() R Under development (unstable) (2020-12-17 r79645) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux bullseye/sid Matrix products: default BLAS: /opt/R-devel/lib/R/lib/libRblas.so LAPACK: /opt/R-devel/lib/R/lib/libRlapack.so locale: [1]

Re: [R-pkg-devel] Accessing features in R4.0.

2020-12-16 Thread Gábor Csárdi
On Wed, Dec 16, 2020 at 8:39 PM Henrik Bengtsson wrote: > > BTW, 'backports' provides a backport for tools::R_user_dir() also for > R (< 4.0.0), so an alternative solution in this case is: > > Imports: backports > > and > > importFrom(backports, R_user_dir) > > The 'backports' package takes the

[Rd] UTF-8 characters in Rd files

2020-12-15 Thread Gábor Csárdi
Dear list, I am trying to see if there is a way to expand the set of UTF-8 characters that we can use in Rd files. The main blocker is LaTeX when building the PDF manual. It is possible to use the inputenx LaTeX package, instead of inputenc, which is an improvement, by setting the

Re: [R-pkg-devel] ggplot2 axis title with various size fonts

2020-12-08 Thread Gábor Csárdi
The best place for ggplot2 related questions is https://community.rstudio.com/ Make sure you use the ggplot2 tag for your question. Gabor On Tue, Dec 8, 2020 at 9:25 AM neonira Arinoem wrote: > > Is it possible to compose a string to be used as axis title in ggplot2, > with the main part being

Re: [Rd] translation domain is wrong in stopifnot()?

2020-12-02 Thread Gábor Csárdi
Bug report: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17998 Gabor On Wed, Dec 2, 2020 at 12:09 PM Martin Maechler wrote: > > >>>>> Gábor Csárdi > >>>>> on Tue, 1 Dec 2020 23:48:37 + writes: > > > I don't know if th

[Rd] translation domain is wrong in stopifnot()?

2020-12-01 Thread Gábor Csárdi
I don't know if this would be considered a bug in either stopifnot() or (n)gettext(), or not a bug at all, but sometimes the translation domain is not set properly for stopifnot() messages, so they won't be translated. E.g. Sys.setenv(LANGUAGE = "de") # This is good stopifnot(FALSE) #> Fehler:

Re: [R-pkg-devel] Rglpk on Linux

2020-11-27 Thread Gábor Csárdi
Hi, on R-hub's Linux builders it is automatically installed if needed, except that it wasn't on Fedora, because of a bug. Please try again, and if it does not work report an issue on R-hub. On Travis, you'll need to install the required packages yourself in the `.travis.yml` file. On CRAN's

Re: [R-pkg-devel] devtools::release() does not release

2020-11-26 Thread Gábor Csárdi
Why not submit a bug report at the devtools repository? ❯ packageDescription("devtools")$BugReports [1] "https://github.com/r-lib/devtools/issues; Gabor On Thu, Nov 26, 2020 at 7:50 PM Spencer Graves wrote: > > Hi folks, > > > devtools::release() gave the following errors: > > > ...

Re: [R-pkg-devel] Conditional Makevars MacOS

2020-11-25 Thread Gábor Csárdi
I am not sure if you can solve this without a configure file, which can be a simple shell script. Here is an example, that detects a bunch of OSes and then creates an OS-dependent Makevars file: https://github.com/r-lib/ps/blob/master/configure You'll probably also need configure.win if you have

Re: [R-pkg-devel] Having shiny as an optional dependency

2020-11-14 Thread Gábor Csárdi
You probably import functions from shiny. Don't do that, refer to them with the `::` operator instead. Gabor On Sat, Nov 14, 2020 at 6:12 PM Kamil Stachowski wrote: > > I wrote a package that contains a graphical interface written with packages > "shiny" and "shinyjqui". My package can also be

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
On Fri, Nov 13, 2020 at 9:02 PM Duncan Murdoch wrote: [...] > Things may have changed since Henrik and I wrote the code, but his > description matches my understanding as well (and I think he's > contributed more recently than I have). > > The way non-Sweave vignettes work is that some packages

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
On Fri, Nov 13, 2020 at 6:10 PM Henrik Bengtsson wrote: > > I'm quite sure you want to use the following: > > Suggests: knitr, rmarkdown, formatR > VignetteBuilder: knitr So this means that WRE is wrong? It says: "Note that if, for example, a vignette has engine ‘knitr::rmarkdown’, then knitr

Re: [R-pkg-devel] Error in loadNamespace(x) : there is no package called 'formatR'

2020-11-13 Thread Gábor Csárdi
I think you need to Suggest the formatR package, because your vignettes use it. From 'Writing R extensions': "Many packages using knitr also need the package formatR which it suggests and so the user package needs to do so too and include this in ‘VignetteBuilder’." Gabor On Fri, Nov 13, 2020

Re: [R-pkg-devel] Usage of internet resources in examples

2020-10-20 Thread Gábor Csárdi
On Tue, Oct 20, 2020 at 10:07 PM Ben Bolker wrote: > > > > On 10/20/20 4:51 PM, Gábor Csárdi wrote: > > On Tue, Oct 20, 2020 at 9:45 PM Ben Bolker wrote: > > [...] > >> if (testthat::skip_on_cran()) > >> > >> all seem like reasonable sol

Re: [R-pkg-devel] Usage of internet resources in examples

2020-10-20 Thread Gábor Csárdi
On Tue, Oct 20, 2020 at 9:45 PM Ben Bolker wrote: [...] >if (testthat::skip_on_cran()) > > all seem like reasonable solutions. I don't think you can use `testthat::skip_on_cran()` for this, it does not return a logical flag: ❯ isTRUE(testthat::skip_on_cran()) Error: Reason: On CRAN It only

Re: [Rd] usage of #import in grDevices/src/qdCocoa.h

2020-10-19 Thread Gábor Csárdi
On Mon, Oct 19, 2020 at 5:02 AM Michael Chirico wrote: > > I happened to notice that this header file uses > > #import > > This is the first time I came across the preprocessor directive #import; > the first thing I found about it is this Q suggesting it's not portable > nor standard C: The

Re: [R-pkg-devel] rJava (broken installation?)

2020-10-13 Thread Gábor Csárdi
Make sure you quit from all R sessions before you reinstall rJava, and also that it is not loaded in the current session. You can also run tools::checkMD5sums("rJava") to check the MD5 sums. Gabor On Tue, Oct 13, 2020 at 4:55 PM Helmut Schütz wrote: > > Dear all, > > in one of my packages I

Re: [Rd] Internet access and R CMD make check-devel

2020-10-05 Thread Gábor Csárdi
One way would be to comment out these tests, or really turn off the internet, and then these tests don't run. Indeed, a successful DNS query does not mean that you can connect to the internet in general. FWIW pingr::is_online [1] implements a method that works well. Apple's Captive Portal test

Re: [R-pkg-devel] dependency fails checking a package on ASAN/UBSAN (on r-hub)

2020-10-01 Thread Gábor Csárdi
It seems that Debian testing has a new version of libxml2, or maybe the ICU is newer, and the xml package does not compile with this. I am afraid that xml2 needs some fixes to solve this. It might be enough to require C++11 support. If you don't want to wait for the xml2 maintainer, then you can

Re: [R-pkg-devel] force revdepcheck to use local version of a dependency

2020-09-28 Thread Gábor Csárdi
You can define the special dependency of the revdep-checked package in the `Remotes` field. More info: https://cran.rstudio.com/web/packages/remotes/vignettes/dependencies.html E.g. if you are revdep-checking package PKG, then you can add something like this in the DESCRIPTION file of PKG:

Re: [Rd] New URL redirect checks

2020-09-17 Thread Gábor Csárdi
ugh: > the built in help browser (at least in MacOS) doesn't show the full URL > when you hover over the link, as most browsers do. So one could have > > \href{https://disney.org}{https://horrible.web.site} > > Duncan Murdoch > > > > > > Cheers, > > Sim

[Rd] New URL redirect checks

2020-09-16 Thread Gábor Csárdi
Dear all, the new CRAN URL checks flag HTTP 301 redirects. While I understand the intent, I think this is unfortunate, because several URL shortener services use 301 redirects, and often a shorter URL is actually better in a manual page than a longer one that can be several lines long in the

[Rd] CRAN metadata broken?

2020-09-11 Thread Gábor Csárdi
E.g. in https://cran.r-project.org/bin/macosx/contrib/4.0/PACKAGES there is Package: stringi Version: 1.5.3 but there is no such binary at https://cran.r-project.org/bin/macosx/contrib/4.0/ FYI, G. __ R-devel@r-project.org mailing list

Re: [R-pkg-devel] visible binding for '<<-' assignment

2020-09-03 Thread Gábor Csárdi
though > > > > – that's why they are in the package. So I would rather not "hide" > > them in > > > > a local environment. This is fundamentally a data package, so access to > > > > this data is the primary point of installing it. >

Re: [R-pkg-devel] visible binding for '<<-' assignment

2020-09-03 Thread Gábor Csárdi
cause they do not contain escaped characters: fixed <- stringi::stri_unescape_unicode(pali_alphabet) identical(pali_alphabet, fixed) #> TRUE Gabor > Is there any other solution? > > Dan > > . > -- > Dan Zigmond > d...@shmonk.com >

Re: [R-pkg-devel] visible binding for '<<-' assignment

2020-09-03 Thread Gábor Csárdi
Store the cached data in an environment within the package: pali_data <- new.env(parent = emptyenv()) pali_string_fix <- function() { pali_data$alphabet <- stringi::stri_unescape_unicode(pali_alphabet) ... } Gabor On Thu, Sep 3, 2020 at 9:33 PM Dan Zigmond wrote: > > Hi, all. I am

Re: [R-pkg-devel] Help with a note

2020-09-03 Thread Gábor Csárdi
`return()` is a function in R, so `return` does nothing. You probably want `return()`. Here: https://github.com/Anirban166/testComplexity/blob/c991c31e5250bcaf804c3ad781fbc126c6a17e57/R/asymptoticMemoryUsage.R#L22 https://github.com/Anirban166/testComplexity/blob/master/R/asymptoticTimings.R#L22

Re: [R-pkg-devel] Advice for solving ERRORs in Fedora reported on CRAN / zen4R package

2020-09-02 Thread Gábor Csárdi
On Wed, Sep 2, 2020 at 11:11 PM Dirk Eddelbuettel wrote: > > > On 2 September 2020 at 23:59, Emmanuel Blondel (GMAIL) wrote: [...] > | Your advice in order to solve that would be much appreciated, > > Life, as they say, "is too short" so you could just comment-out the test. Indeed, it is

Re: [R-pkg-devel] help in identifying a segfault (rhub)

2020-08-24 Thread Gábor Csárdi
Is this reproducible on R-hub? Do you see it with the other R-devel containers as well? Some things to try: Try running address sanitizer on your package to see if it can find any memory errors. You can do this on R-hub as well, if you cannot do it on your machine. Try downloading the

Re: [R-pkg-devel] install_git +submodules

2020-08-22 Thread Gábor Csárdi
Hi, If you mean remotes::install_git(), and you think this is a bug in remotes, then please open an issue in the remotes issue tracker: https://github.com/r-lib/remotes/issues Thanks, Gabor On Sat, Aug 22, 2020 at 9:08 PM Sameh M. Abdulah wrote: > > > I am using install_git to download my

[R-pkg-devel] cran macos metadata error for ps package

2020-08-13 Thread Gábor Csárdi
❯ install.packages("ps", repos = "https://cran.r-project.org;) Installing package into ‘/Users/gaborcsardi/Library/R/4.0/library’ (as ‘lib’ is unspecified) trying URL 'https://cran.r-project.org/bin/macosx/contrib/4.0/ps_1.3.4.tgz' Error in download.file(url, destfile, method, mode = "wb", ...) :

Re: [R-pkg-devel] NOTE in r-devel-linux-x86_64-fedora-clang

2020-08-07 Thread Gábor Csárdi
On Fri, Aug 7, 2020 at 3:51 PM Helmut Schütz wrote: > > Hi Gábor, > > Gábor Csárdi wrote on 2020-08-07 16:46: > > If you want to link to a package in the documentation, you'll have to > > add it to Suggests. > > THX, will do. Is this documented somewhere? Th

Re: [R-pkg-devel] NOTE in r-devel-linux-x86_64-fedora-clang

2020-08-07 Thread Gábor Csárdi
If you want to link to a package in the documentation, you'll have to add it to Suggests. Gabor On Fri, Aug 7, 2020 at 3:45 PM Helmut Schütz wrote: > > Dear all, > > I'm struggling to understand this NOTE in > r-devel-linux-x86_64-fedora-clang (only) >

Re: [R-pkg-devel] Check Error Due to Unicode in Documentation

2020-07-23 Thread Gábor Csárdi
On Thu, Jul 23, 2020 at 10:25 PM Gábor Csárdi wrote: > > On Thu, Jul 23, 2020 at 9:58 PM Duncan Murdoch > wrote: > > > > On 23/07/2020 4:14 p.m., b...@denney.ws wrote: [...] > Bill, please report a roxygen2 issue at > https://github.com/r-lib/roxygen2/iss

Re: [R-pkg-devel] Check Error Due to Unicode in Documentation

2020-07-23 Thread Gábor Csárdi
On Thu, Jul 23, 2020 at 9:58 PM Duncan Murdoch wrote: > > On 23/07/2020 4:14 p.m., b...@denney.ws wrote: [...] > > If you change the source to include the explicit characters (i.e. use > pattern = c("μ", "µ") instead of pattern=c("\u03bc", "\u00b5")), does > that help? > > It may cause other

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Gábor Csárdi
On Mon, Jul 20, 2020 at 9:15 AM Abby Spurdle wrote: > > It's possible to run R (or a c parent process) as a background process > via a named pipe, and then write script files to the named pipe. > However, the details depend on what shell you use. I would use screen or tmux for this, if this is

Re: [R-pkg-devel] Failing rhub::check_for_cran() because of data.table

2020-07-16 Thread Gábor Csárdi
Hi, this is because data.table is not available as a binary package for R-devel, on CRAN. You can tell R to build it from source like this: rhub::check( platform="windows-x86_64-devel", env_vars=c(R_COMPILE_AND_INSTALL_PACKAGES = "always") ) Btw. please report R-ghub errors in the issue

  1   2   3   4   5   >