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

"Error : package 'bitops' required by 'RCurl' could not be found" #85

Open
jimbob407 opened this issue Aug 15, 2016 · 5 comments
Open

Comments

@jimbob407
Copy link

Hi,

I am trying to install your package, however when I get to the part where I need to run the following lines:

install_github("rga", "skardhamar")
    library(rga)

I get this error:

Downloading GitHub repo skardhamar/rga@master
from URL https://api.github.com/repos/skardhamar/rga/zipball/master
Installing rga
Installing 1 package: RCurl
Installing package into ‘C:/Users/username/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/RCurl_1.95-4.8.zip'
Content type 'application/zip' length 2854329 bytes (2.7 MB)
downloaded 2.7 MB

package ‘RCurl’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\username\AppData\Local\Temp\RtmpCGvUTW\downloaded_packages
"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  "C:/Users/username/AppData/Local/Temp/RtmpCGvUTW/devtoolsf90249fdc1/skardhamar-rga-3386acf"  \
  --library="C:/Users/username/Documents/R/win-library/3.3" --install-tests 

* installing *source* package 'rga' ...
** R
** preparing package for lazy loading
Error : package 'bitops' required by 'RCurl' could not be found
ERROR: lazy loading failed for package 'rga'
* removing 'C:/Users/username/Documents/R/win-library/3.3/rga'
Error: Command failed (1)

Any ideas how I can fix this? Thanks.

@MarkEdmondson1234
Copy link

Have you tried below?

install.packages(bitops)
devtools::install_github("skardhamar/rga")

@jimbob407
Copy link
Author

When I try your code above, i get the following error:

install.packages(bitops)
Error in install.packages : object 'bitops' not found

It is very possible I have done something wrong as this is my first attempt at using R. I literally just downloaded the 'devtools-master' folder, and added the 'rga-master' to the same folder while over-writing any existing files. Was this the correct way to do this?

@MarkEdmondson1234
Copy link

Sorry my mistake, try install.packages("bitops")

@jimbob407
Copy link
Author

Worked :) Thank you!

@MMcCaffrey
Copy link

@MarkEdmondson1234 -- I was getting that same error, but for a different package. I'm also an R newbie, trying to get a web scraper package to work just enough so I can export to a CSV, then to Python. Anyway, your answer helped a great deal, so thank you very much.

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

3 participants