Re: [R-pkg-devel] gcc14 checks on fedora

2024-05-24 Thread Gábor Csárdi
Fedora 40 comes with gcc 14.1.x. But I would first try to use the `-Wformat-truncation=` flag with the compiler you have, it is possible that you don't need gcc 14.1. If you do, then the `fedora:40` container should be good. Gabor On Fri, May 24, 2024 at 9:02 PM Brad Eck wrote: > > Dear List - >

Re: [R-pkg-devel] State of the art for UBSAN testing

2024-05-16 Thread Gábor Csárdi
R-hub v2 has UBSAN testing, the clang-asan image also has UBSAN. [1] With the glitch that UBSAN errors do not fail the build because of a bug [2], so you'll need to look at the results even if the build has passed. Gabor [1] https://r-hub.github.io/containers/ [2] https://github.com/r-hub/action

Re: [R-pkg-devel] Interpretation of rhub check failures

2024-05-15 Thread Gábor Csárdi
The lines ``` * checking examples with --run-donttest ... Error: The operation was canceled. ``` and the 6 hours running time means that your build gets stuck while running the examples, and then cancelled after 6 hours, that's the time limit for a build. This might or might not be specific for Gi

Re: [R-pkg-devel] clang-UBSAN

2024-05-13 Thread Gábor Csárdi
The rhub package should be able to reproduce that, see https://github.com/r-hub/rhub#readme Or you can use the clang-asan container directly: https://r-hub.github.io/containers/ Gabor On Mon, May 13, 2024 at 12:31 AM Kaifeng Lu wrote: > > Dear friends, > > I am developing an R package built wit

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 > p

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 new

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. > > Wh

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 p

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 the

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 c

Re: [R-pkg-devel] Solaris segfaults

2021-09-14 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 R

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 searc

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 an

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 load_

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 the

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 = "https://r-lib.github.i

Re: [R-pkg-devel] R vignettes

2021-04-29 Thread Gábor Csárdi
n a manuscript for publication. > > I don't export any objects named '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

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 bel

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 embarrassin

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 ai

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 fi

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

2021-04-08 Thread Gábor Csárdi
appreciate the 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 > > > >

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. ht

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 wro

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) { > pkgB::f

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 line

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 erro

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 2

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 van

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 the

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 o

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 sti

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 sa

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: [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 mach

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 c

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 u

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

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 pr

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

2020-11-13 Thread Gábor Csárdi
needed in the build > config as a separate entity? > > e.g: > > Suggests: knitr, rmarkdown > VignetteBuilder: knitr, formatR > > or > > Suggests: knitr, rmarkdown > VignetteBuilder: knitr, rmarkdown, formatR > > Thank you. > > J Park > > On 11/13/2

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 at

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: [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 imp

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 f

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: Remotes

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

2020-09-03 Thread Gábor Csárdi
o package users > > 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 primar

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

2020-09-03 Thread Gábor Csárdi
s, because 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.co

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 devel

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 probably

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 https://hu

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 packa

Re: [R-pkg-devel] R CMD INSTALL -l /path/lib

2020-08-19 Thread Gábor Csárdi
>From https://cran.r-project.org/doc/manuals/R-exts.html: > The script is run in a separate R environment containing the following variables: R_PACKAGE_NAME (the name of the package), R_PACKAGE_SOURCE (the path to the source directory of the package), R_PACKAGE_DIR (the path of the target installa

[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

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) > https://cran.r-project.org/web/checks/check

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/issues a

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 issue

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 track

Re: [R-pkg-devel] How to refer to COPYRIGHTS and AUTHORS extra files in DESCRIPTION

2020-07-07 Thread Gábor Csárdi
HI, here is an example from a package that was accepted relatively recently: https://github.com/r-lib/presser/blob/master/DESCRIPTION#L8-L11 Gabor On Tue, Jul 7, 2020 at 6:30 PM git demont wrote: > > Hi all, > > Sorry for asking again, but I got absolutely no advice on how to > correctly refer

Re: [R-pkg-devel] NOTE from checking for detritus in the temp directory

2020-07-04 Thread Gábor Csárdi
file is compiled, some aux files are generated. So, I think > that CRAN may not delete aux files properly. > > Thanks, > CP > > > > On Sat, Jul 4, 2020 at 9:48 PM Gábor Csárdi wrote: >> >> Most likely this is because you start a web browser in your examples >>

Re: [R-pkg-devel] NOTE from checking for detritus in the temp directory

2020-07-04 Thread Gábor Csárdi
Most likely this is because you start a web browser in your examples or tests. Try to find where that happens, and don't run it that example or test case on CRAN. Gabor On Sat, Jul 4, 2020 at 1:46 PM Applied Statistics Laboratory wrote: > > Dear All, > > I got a NOTE from CRAN: > > > > > > > > *

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-07-02 Thread Gábor Csárdi
d check > again. > > Best > > Jens > > > > > > > Duncan Murdoch > > > > > > > > Best regards > > > > > > Jens > > > > > > > > > > > > > > > On 16.06.20 22:31, Gábor Csárdi wr

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-07-02 Thread Gábor Csárdi
ose issues locally? > If it is tested during cran submission, then seems reasonable to be enabled > just by --as-cran switch. Is it? > Thanks > > On Wed 17 Jun, 2020, 12:32 AM Wayne Oldford, wrote: >> >> Thank you! >> >> -Original Message- >>

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-07-01 Thread Gábor Csárdi
tion 'Cross-references' in the 'Writing R Extensions' manual. > > although clone.ff is in clone.ff.rd as confirmed by > > > help("clone.ff","ff")[[1]] > [1] "/home/mypc/R/x86_64-pc-linux-gnu-library/4.0/ff/help/clone.ff" > >

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-16 Thread Gábor Csárdi
subtlety in WRE or that the peculiar > circumstance > where the package, the topic, and the file name are all identical (sp) is > some weird boundary case. > > Without further advice, I think I am just going to remove the link to "sp". > It really is just a courtesy link

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-16 Thread Gábor Csárdi
On Mon, Jun 15, 2020 at 5:30 PM Duncan Murdoch wrote: > > On 15/06/2020 12:05 p.m., Martin Maechler wrote: > >> Duncan Murdoch on Sun, 14 Jun 2020 07:28:03 -0400 writes: > > > > > I agree with almost everything you wrote, except one thing: this > > isn't > > > newly enforced, it

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-14 Thread Gábor Csárdi
On Sun, Jun 14, 2020 at 10:44 AM Duncan Murdoch wrote: [...] > > I think the argument was that static builds of the help pages would have > trouble resolving the links. With the current system, you can build a > help page that links to a page in package foo even if package foo is not > installed

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-13 Thread Gábor Csárdi
On Sat, Jun 13, 2020 at 8:10 PM Duncan Murdoch wrote: > > On 13/06/2020 1:17 p.m., Zhian Kamvar wrote: [...] > > Is this a new policy? Zhian, it seems that some of the problematic links are created by roxygen2. You can fix these using this PR: https://github.com/r-lib/roxygen2/pull/1109 You can i

Re: [R-pkg-devel] email misleading: checking CRAN incoming feasibility ... NOTE Maintainer

2020-06-08 Thread Gábor Csárdi
On Mon, Jun 8, 2020 at 3:58 PM Uwe Ligges wrote: [...] > Nor do I how they can find out, as our idea is that CRAN cannot be > special cased. > If you want to run additional tests, you can execute them if some env > var is set that you define on machines where you want to run the > additional tests

Re: [R-pkg-devel] using devtools::install_github() when curl is a dependency

2020-06-06 Thread Gábor Csárdi
Hi, you can use the remotes package (that devtools itself uses under the hood), and set the R_REMOTES_STANDALONE="true" environment variable. Then remotes will not use any packages to perform the downloads and the installations. See more here: https://github.com/r-lib/remotes#standalone-mode Gabor

Re: [R-pkg-devel] win-builder failing without informative message

2020-06-02 Thread Gábor Csárdi
Seems like your tests did not finish: https://win-builder.r-project.org/SFSFeP44df58/examples_and_tests/tests_x64/testthat.Rout Either they take too long, or they froze. You can use a different testthat reporter, to see which one is stuck, e.g. like this: https://github.com/cran/desc/blob/3e52b492

Re: [R-pkg-devel] S4 methods

2020-06-02 Thread Gábor Csárdi
You export these S4 classes from your package: https://github.com/cran/sizeMat/blob/c4d257a9108cde3ddb6e8eb2072cd567ae85b5c8/NAMESPACE#L13-L15 But these are not actually S4 classes, AFAICT. Remove the `@exportClass` tags here: https://github.com/cran/sizeMat/blob/c4d257a9108cde3ddb6e8eb2072cd567ae

Re: [R-pkg-devel] Package submission failed with two warnings

2020-05-15 Thread Gábor Csárdi
The reason is that CRAN does not have an R-devel binary for data.table, and because of this install.packages() decides not to install it. Here is a workaround: https://github.com/r-hub/rhub/issues/367#issuecomment-621757715 Gabor On Fri, May 15, 2020 at 10:50 PM Max Turgeon wrote: > > Hi Farshad

Re: [R-pkg-devel] Help Debugging Debian Error

2020-05-15 Thread Gábor Csárdi
You don't need to move the files around, though, just use a more verbose testthat reporter, e.g. in testthat.R use test_check("PAutilities", reporter = "summary") and then at least you'll know where it crashes. But to fix this, you'll probably need to debug it locally. You can do that in Docker i

Re: [R-pkg-devel] Help Debugging Debian Error

2020-05-14 Thread Gábor Csárdi
Apparently, this is not a warning, but the package itself is printing it as a startup message: https://github.com/cran/PAutilities/blob/ada73d8d44177c12867cc385cdca0054885ddae3/R/zzz.R#L5 Gabor On Fri, May 15, 2020 at 2:30 AM Gábor Csárdi wrote: > > It is unlikely that this is an R-hub

Re: [R-pkg-devel] Help Debugging Debian Error

2020-05-14 Thread Gábor Csárdi
It is unlikely that this is an R-hub issue because the first link is CRAN's machine, and the same error happens there. I can reproduce it on macOS: git clone https://github.com/paulhibbing/PAutilities R CMD INSTALL PAutilities R -q -e 'packageDescription("PAutilities")$Built' #> > packageDescrip

Re: [R-pkg-devel] MathJax for Rd files

2020-05-14 Thread Gábor Csárdi
On Thu, May 14, 2020 at 10:27 AM Duncan Murdoch wrote: > > On 14/05/2020 3:30 a.m., Georgi Boshnakov wrote: > > The issue is not with Rstudio per se but that in devtools' development mode > > help() is modified to show the Rd files in the source directory, as one > > would expect, but doesn't l

Re: [R-pkg-devel] how to specify to let a package only build 64bit on CRAN

2020-05-11 Thread Gábor Csárdi
Hi Jan, this is the only example that I could find: https://github.com/cran/regRSM/blob/master/DESCRIPTION#L13 I.e. you can have an 'Archs' field in DESCRIPTION, and apparently you can set that to 'i386' or 'x64' or both. I don't know what OSes support this field, and this package hasn't been u

Re: [R-pkg-devel] Problems importing packages with SystemRequirements

2020-04-28 Thread Gábor Csárdi
Yeah, this is a bug in whoami I think. It has a tryCatch() but it does not suppress the error message from system(). Gabor On Tue, Apr 28, 2020 at 2:35 PM wrote: > > Dear Uwe, > thanks for your reply. > But wouldn't checking for the SystemRequirements be the dependencies' jobs? > Looking at `who

Re: [R-pkg-devel] Non-standard things in the check directory

2020-04-23 Thread Gábor Csárdi
Just realized that nobody replied to this. So this seems to be a bug in `R CMD check --as-cran`, it does not ignore the arch specific examples and tests directories and files. It happens as well if you run your check on a local windows, not just on R-hub. Should I open a bug for this? There is an

Re: [R-pkg-devel] Warning R-hub Windows Server 2008 : qpdf needed

2020-04-22 Thread Gábor Csárdi
Hi, which R version was this? Can you point to a build log? qpdf is definitely installed on R-hub's Windows machines, and it is even on the PATH. Maybe the new toolchain did not find it, I have copied it to a better place now, please try again. Best, Gabor On Wed, Apr 22, 2020 at 5:44 PM Paul S

Re: [R-pkg-devel] check_for_cran not responsive

2020-04-21 Thread Gábor Csárdi
Hi, please reports R-hub issues at https://github.com/r-hub/rhub/issues It takes a bit longer to get started when there R-hub is busy. You can always interrupt the display with CTRL+C / ESC, and then query the results later: ❯ rhub::get_check("factorial2x2_0.2.0.tar.gz-6c92f626dae242f7b915c43bbf1

Re: [R-pkg-devel] slightly polemic question re R CMD check

2020-03-08 Thread Gábor Csárdi
You can add the ... argument to chop.default(), and then check that length(list(...)) is zero. Also, you might be interested in the ellipsis package. Gabor On Sun, Mar 8, 2020 at 10:56 AM David Hugh-Jones wrote: > > Hi all, > > My package defines the following method and generic: > > chop <- fu

Re: [R-pkg-devel] Building Windoze packages using rhub.

2020-03-06 Thread Gábor Csárdi
Thanks for the great walk-through! For reference, if you want to know more about R-hub, this is the documentation: https://docs.r-hub.io/ Best, Gabor On Fri, Mar 6, 2020 at 4:22 AM Rolf Turner wrote: > > > Recently I complained about the fact that it was taking forever for > packages to come ba

Re: [R-pkg-devel] R CMD build hanging for some but not all packages

2020-02-11 Thread Gábor Csárdi
to exclude the files > > from copying. > > > > Any suggestions? > > > > > >> On 11 Feb 2020, at 10:20, Rainer M Krug wrote: > >> > >> > >> > >>> On 11 Feb 2020, at 09:54, Gábor Csárdi wrote: > >>> > >&

Re: [R-pkg-devel] R CMD build hanging for some but not all packages

2020-02-11 Thread Gábor Csárdi
On Tue, Feb 11, 2020 at 8:52 AM Rainer M Krug wrote: > On 11 Feb 2020, at 09:42, Gábor Csárdi wrote: > On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug wrote: > On 10 Feb 2020, at 17:58, Gábor Csárdi wrote: > > Maybe you have large, ignored files in the package directory? R first &

Re: [R-pkg-devel] R CMD build hanging for some but not all packages

2020-02-11 Thread Gábor Csárdi
On Tue, Feb 11, 2020 at 8:38 AM Rainer M Krug wrote: > > > > On 10 Feb 2020, at 17:58, Gábor Csárdi wrote: > > Maybe you have large, ignored files in the package directory? R first > creates a copy of the whole directory and only applies `.Rbuildignore` > after that. &g

Re: [R-pkg-devel] R CMD build hanging for some but not all packages

2020-02-10 Thread Gábor Csárdi
Maybe you have large, ignored files in the package directory? R first creates a copy of the whole directory and only applies `.Rbuildignore` after that. Gabor On Mon, Feb 10, 2020 at 4:54 PM Hong Ooi via R-package-devel wrote: > > Actually, cancel that: it finished successfully, but took 3 minut

Re: [R-pkg-devel] revdepcheck::revdep_check interpretation problem

2020-02-10 Thread Gábor Csárdi
On Mon, Feb 10, 2020 at 8:24 AM Spencer Graves wrote: [...] > 1. What does the "E: 1" for "gamclass" mean? It sounds > like an error to me, but that contradicts the final message, > "OK: 16, BROKEN: 0". ✓ gamclass 0.58 ── E: 1 | W: 0 | N: 0 means t

  1   2   3   >