caravagnalab / revolver

REVOLVER - Repeated Evolution in Cancer
https://caravagnalab.github.io/revolver/
64 stars 25 forks source link

What is the Required R Version #40

Closed biosunsci closed 3 years ago

biosunsci commented 3 years ago

What is the relying R version of the current package? I did not see any description of dependencies on the https://rdrr.io/github/caravagn/revolver/ or on the github Readme page. It seems that this package can not be installed on R 3.6.0 enviroment. my env is

platform       x86_64-redhat-linux-gnu     
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          6.0                         
year           2019                        
month          04                          
day            26                          
svn rev        76424                       
language       R                           
version.string R version 3.6.0 (2019-04-26)
nickname       Planting of a Tree    

Input codes:

library(devtools)
install_github("caravagnalab/revolver")

can't install the package. Output codes:

Downloading GitHub repo caravagnalab/revolver@HEAD

ctree  (NA -> e2860d2a1...) [GitHub]
mtree  (NA -> 8459f2732...) [GitHub]
car    (NA -> 3.0-11      ) [CRAN]
ggraph (NA -> 2.0.5       ) [CRAN]
Downloading GitHub repo caravagn/ctree@HEAD

ggraph (NA -> 2.0.5) [CRAN]
Installing 1 packages: ggraph

Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)

Warning message in i.p(...):
“installation of package ‘ggraph’ had non-zero exit status”
Updating HTML index of packages in '.Library'

Making 'packages.html' ...
 done

✔  checking for file ‘/GCI/tmp/Rtmp4wQC5Q/remotes57914e7ec15c/caravagnalab-ctree-e2860d2/DESCRIPTION’
─  preparing ‘ctree’:
✔  checking DESCRIPTION meta-information
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘ctree/vignettes’
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘ctree_0.1.2.tar.gz’

Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)

Warning message in i.p(...):
“installation of package ‘/GCI/tmp/Rtmp4wQC5Q/file579117250a62/ctree_0.1.2.tar.gz’ had non-zero exit status”
Downloading GitHub repo caravagn/mtree@HEAD

Error: Failed to install 'unknown package' from GitHub:
  Failed to install 'unknown package' from GitHub:
  HTTP error 403.
  API rate limit exceeded for 103.78.41.233. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2021-08-18 13:54:53 UTC

  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
Traceback:

1. install_github("caravagnalab/revolver")
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 = repos, type = type, ...)
 .     }
 . }, required = FALSE)
3. 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. tryCatch(res[[i]] <- install_remote(remotes[[i]], ...), error = function(e) {
 .     stop(remote_install_error(remotes[[i]], e))
 . })
5. tryCatchList(expr, classes, parentenv, handlers)
6. tryCatchOne(expr, names, parentenv, handlers[[1L]])
7. value[[3L]](cond)

Please help me.

caravagn commented 3 years ago

HI @biosunsci ,

According to the DESCRIPTION R >=3.4 should work. I think you have a problem installing ctree, which is a package revolver depends on.

The error you have API rate limit exceeded is a general issue with GitHub access from unregistered users (see stackoverflow) and is independent of our packages, and should be solved independently.

biosunsci commented 3 years ago

I'll begin with trying to install ctree first. Thank you for the quick reply with the kindly help ~