Skip to content

remotes::install_github() conflicts with custom _R_CHECK_FORCE_SUGGESTS_ #238

@pat-s

Description

@pat-s

Gave me quite some headache to find the cause of this error.
We had an env var _R_CHECK_FORCE_SUGGESTS_ = 0 set in our project. This caused the error below. Maybe you can somehow handle this internally.

Probably caused by this commit.

remotes::install_github("ropenscilabs/tic@test")
Downloading GitHub repo ropenscilabs/tic@testchecking for file/tmp/RtmpYz0tm9/remotes3a993d916193/ropenscilabs-tic-de4d39a/DESCRIPTION...preparingtic:checking DESCRIPTION meta-information ...checking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directoriesbuildingtic_0.2.13.9010.tar.gzError in if (should_error_for_warnings()) { : 
  missing value where TRUE/FALSE needed
> traceback()
8: force(code)
7: with_envvar(c(R_LIBS = lib, R_LIBS_USER = lib, R_LIBS_SITE = lib), 
       if (should_error_for_warnings()) {
           with_options(list(warn = 2), with_rprofile_user("options(warn = 2)", 
               i.p(...)))
       } else {
           i.p(...)
       })
6: safe_install_packages(pkgdir, repos = NULL, quiet = quiet, type = "source", 
       ...)
5: install(source, dependencies = dependencies, upgrade = upgrade, 
       force = force, quiet = quiet, build = build, build_opts = build_opts, 
       repos = repos, type = type, ...)
4: FUN(X[[i]], ...)
3: vapply(remotes, install_remote, ..., FUN.VALUE = character(1))
2: install_remotes(remotes, auth_token = auth_token, host = host, 
       dependencies = dependencies, upgrade = upgrade, force = force, 
       quiet = quiet, build = build, build_opts = build_opts, repos = repos, 
       type = type, ...)
1: remotes::install_github("ropenscilabs/tic@test")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions