genomicsclass/labs

Issue with devtools and genomicsclass/GSE5859Subset

Opened this issue · 4 comments

Hello,
I am stuck for the past two days. I need to use genomicsclass/GSE5859Subset and
for that I have installed "devtools". I have also installed Rtools (Rtools34) from CRAN. I am running version 3.6.0 of RStudio.

I get these warning and error messages. I cannot use the GSE5859Subset dataset. Any help would be greatly appreciated.

library(devtools)
Loading required package: usethis
Warning messages:
1: package ‘devtools’ was built under R version 3.6.3
2: package ‘usethis’ was built under R version 3.6.3
install_github("genomicsclass/GSE5859Subset")
Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 157.32.239.55. (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: 2020-05-26 15:42:00 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.

library(GSE5859Subset)
Error in library(GSE5859Subset) :
there is no package called ‘GSE5859Subset’
data(GSE5859Subset)
Warning message:
In data(GSE5859Subset) : data set ‘GSE5859Subset’ not found

try cloning the repo and installing the package as a source package. you
could also try adding your github credentials in the call to install_github as
directed in the

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.

Hello,
I have uninstalled and reinstalled R, Rtools and RStudio and I have installed package devtools. Again, I cannot proceed further and I get the error messages

library(devtools)
Error: package or namespace load failed for ‘devtools’:
.onLoad failed in loadNamespace() for 'pkgload', details:
call: loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
error: there is no package called ‘backports’

install_github("genomicsclass/GSE5859Subset")
Error in install_github("genomicsclass/GSE5859Subset") :
could not find function "install_github"
library(GSE5859Subset)
Error in library(GSE5859Subset) :
there is no package called ‘GSE5859Subset’

I have resolved the first step. Now the only problem is

install_github("genomicsclass/GSE5859Subset")
I get
Downloading GitHub repo genomicsclass/GSE5859Subset@master
Error: Failed to install 'GSE5859Subset' from GitHub:
System command 'Rcmd.exe' failed, exit status: -1, stdout + stderr empty

If you cloned the repo you have to have your R session setwd() to the folder where the clone was deposited. Then do install.packages("GSE5859Subset", repos=NULL, type="source"). github and devtools are out of the picture once you have succeeded in cloning. If you did not clone the repo but obtained a personal access token you will have to supply that token in your install_github call