StatsWithR / statsr

Companion package for the Coursera Statistics with R specialization
Other
69 stars 83 forks source link

Can't install statsr #9

Open maxipagliero opened 7 years ago

maxipagliero commented 7 years ago

Hi there, I'm setting up my R enviroment but when trying to install "statsr" I get the "Error: Could not find build tools necessary to build Rcpp" message. Below is the command I'm using.

Previous to this, I have installed the following:

install.packages("devtools") library(devtools)

install.packages("dplyr") install.packages("ggplot2") install.packages("shiny")

Anyone out there with the same problem. I'm running Mac.- BR MAX:-

install_github("StatsWithR/statsr") Downloading GitHub repo StatsWithR/statsr@master from URL https://api.github.com/repos/StatsWithR/statsr/zipball/master Installing statsr trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/broom_0.4.2.tgz' Content type 'unknown' length 1598847 bytes (1.5 MB)

downloaded 1.5 MB

Installing broom trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/tidyr_0.6.1.tgz' Content type 'unknown' length 549062 bytes (536 KB)

downloaded 536 KB

Installing tidyr Downloading GitHub repo RcppCore/Rcpp@master from URL https://api.github.com/repos/RcppCore/Rcpp/zipball/master Error: Could not find build tools necessary to build Rcpp

rundel commented 7 years ago

My guess is that you are running on a windows system without Rtools installed, this is available here - https://cran.r-project.org/bin/windows/Rtools/. Once that is installed try restarting R or RStudio and attempt to reinstall the packages.