skardhamar / rga

R Google Analytics
186 stars 88 forks source link

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

Open jimbob407 opened 8 years ago

jimbob407 commented 8 years ago

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 commented 8 years ago

Have you tried below?

install.packages(bitops)
devtools::install_github("skardhamar/rga")
jimbob407 commented 8 years ago

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 commented 8 years ago

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

jimbob407 commented 8 years ago

Worked :) Thank you!

MMcCaffrey commented 7 years ago

@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.