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

Issue with devtools and genomicsclass/GSE5859Subset #96

Open
supradg opened this issue May 26, 2020 · 4 comments
Open

Issue with devtools and genomicsclass/GSE5859Subset #96

supradg opened this issue May 26, 2020 · 4 comments

Comments

@supradg
Copy link

supradg commented May 26, 2020

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

@vjcitn
Copy link
Contributor

vjcitn commented May 26, 2020

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.

@supradg
Copy link
Author

supradg commented May 27, 2020

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’

@supradg
Copy link
Author

supradg commented May 27, 2020

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

@vjcitn
Copy link
Contributor

vjcitn commented May 27, 2020

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

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