package - Failed to install Swirl in R 3.2.1 on Mac OS10.9 - installation had non-zero status -


> install.packages("swirl", depenedencies=true) --- please select cran mirror use in session --- installing dependencies ‘stringi’, ‘stringr’     there binary versions available source versions   later:         binary source needs_compilation stringi  1.1.1  1.1.5             false stringr  1.0.0  1.2.0             false swirl    2.4.2  2.4.3             false  installing source packages ‘stringi’, ‘stringr’, ‘swirl’  error in download.file(url, destfile, method, mode = "wb", ...) :    unused argument (depenedencies = true) warning in download.packages(pkgs, destdir = tmpd, available = available,  :   download of package ‘stringi’ failed error in download.file(url, destfile, method, mode = "wb", ...) :    unused argument (depenedencies = true) warning in download.packages(pkgs, destdir = tmpd, available = available,  :   download of package ‘stringr’ failed error in download.file(url, destfile, method, mode = "wb", ...) :    unused argument (depenedencies = true) warning in download.packages(pkgs, destdir = tmpd, available = available,  :   download of package ‘swirl’ failed 

and happens when not use dependency arguments

   > install.packages("swirl") installing dependencies ‘stringi’, ‘stringr’     there binary versions available source versions   later:         binary source needs_compilation stringi  1.1.1  1.1.5             false stringr  1.0.0  1.2.0             false swirl    2.4.2  2.4.3             false  installing source packages ‘stringi’, ‘stringr’, ‘swirl’  trying url 'http://cran.stat.auckland.ac.nz/src/contrib/stringi_1.1.5.tar.gz' content type 'application/x-gzip' length 3645872 bytes (3.5 mb) ================================================== downloaded 3.5 mb  trying url 'http://cran.stat.auckland.ac.nz/src/contrib/stringr_1.2.0.tar.gz' content type 'application/x-gzip' length 94095 bytes (91 kb) ================================================== downloaded 91 kb  trying url 'http://cran.stat.auckland.ac.nz/src/contrib/swirl_2.4.3.tar.gz' content type 'application/x-gzip' length 108666 bytes (106 kb) ================================================== downloaded 106 kb  * installing *source* package ‘stringi’ ... ** package ‘stringi’ unpacked , md5 sums checked checking local icudt_dir... icu55/data checking r_home... /library/frameworks/r.framework/resources checking r... /library/frameworks/r.framework/resources/bin/r checking r >= 3.1.0 c++11 use... yes checking r < 3.4.0 cxx1x flag use... yes checking cat... /bin/cat checking gcc... llvm-gcc-4.2 -arch x86_64 -std=gnu99 checking whether c compiler works... no configure: error: in `/private/var/folders/6h/2hpqtkx11xz8lytwg01m1tm40000gn/t/rtmpqquegz/r.install3b727191707/stringi': configure: error: c compiler cannot create executables see `config.log' more details error: configuration failed package ‘stringi’ * removing ‘/library/frameworks/r.framework/versions/3.2/resources/library/stringi’ error: dependency ‘stringi’ not available package ‘stringr’ * removing ‘/library/frameworks/r.framework/versions/3.2/resources/library/stringr’ error: dependency ‘stringr’ not available package ‘swirl’ * removing ‘/library/frameworks/r.framework/versions/3.2/resources/library/swirl’  downloaded source packages in     ‘/private/var/folders/6h/2hpqtkx11xz8lytwg01m1tm40000gn/t/rtmpgnegth/downloaded_packages’ warning messages: 1: in install.packages("swirl") :   installation of package ‘stringi’ had non-zero exit status 2: in install.packages("swirl") :   installation of package ‘stringr’ had non-zero exit status 3: in install.packages("swirl") :   installation of package ‘swirl’ had non-zero exit status >   

i'm new programming , not sure how read yet. there couple of commands people used other packages when r gave out same problem, tried them , nothing happened thought i'd stop doign without knowing i'm doing.

try first:

install.packages("swirl", dependencies=true) 

if fails try this:

install.packages("stringr", dependencies=true) install.packages("stringi", dependencies=true) install.packages("swirl", dependencies=true) 

swirl requires packages, if not installed using dependencies=true should coerce them install @ same time, if not, preinstall them , see if swirl works.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -