Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devtools::install_github() and devtools::check() succeed under Linux but fail under Windows #680

Closed
sgutreuter opened this issue Dec 14, 2021 · 2 comments

Comments

@sgutreuter
Copy link

I have an R package for which devtools:check() shows no errors, warnings or notes, and it installs and runs as expected under Linux Mint.
However, devtools:check() fails under Windows, as does devtools::install_github(). However, install_packages() pointing to a clone of the repo on the Windows box succeeds.

Reproducible code, including the results of traceback() and sessionInfo() is attached.

devtools_errors.txt

@gaborcsardi
Copy link
Member

I cannot reproduce this. Do you have a custom user-level Makevars file?

R> devtools::install_github("sgutreuter/screenr", ref = "master")
Downloading GitHub repo sgutreuter/screenr@master
Error: Failed to install 'screenr' from GitHub:
  Multiple results for CXX11FLAGS found, something is wrong.FALSE
R> traceback()
10: stop(remote_install_error(remotes[[i]], e))
9: value[[3L]](cond)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatch(res[[i]] <- install_remote(remotes[[i]], ...), error = function(e) {
       stop(remote_install_error(remotes[[i]], e))
   })
5: install_remotes(remotes, auth_token = auth_token, host = host,
       dependencies = dependencies, upgrade = upgrade, force = force,
       quiet = quiet, build = build, build_opts = build_opts, build_manual = build_manual,
       build_vignettes = build_vignettes, repos = repos, type = type,
       ...)
4: force(code)
3: withr::with_path(rtools_path(), code)
2: pkgbuild::with_build_tools({
       ellipsis::check_dots_used(action = getOption("devtools.ellipsis_action",
           rlang::warn))
       {
           remotes <- lapply(repo, github_remote, ref = ref, subdir = subdir,
               auth_token = auth_token, host = host)
           install_remotes(remotes, auth_token = auth_token, host = host,
               dependencies = dependencies, upgrade = upgrade, force = force,
               quiet = quiet, build = build, build_opts = build_opts,
               build_manual = build_manual, build_vignettes = build_vignettes,
               repos = rep os, type = type, ...)
       }
   }, required = FALSE)
1: devtools::install_github("sgutreuter/screenr", ref = "master")

@gaborcsardi
Copy link
Member

Closing for lack of information. Please reopen with more info if you still have this problem. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants