twitteR package installation failure - r

Hi I'm trying to install twitteR package but it is giving error. Previous version I got the same error so I uninstalled it and re installed R again. But I am facing the same problem again. Can some one help me please. Thanks in advance.
** testing if installed package can be loaded
* DONE (rjson)
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/local/lib/R/site-library/RCurl’
ERROR: dependency ‘RCurl’ is not available for package ‘ROAuth’
* removing ‘/usr/local/lib/R/site-library/ROAuth’
ERROR: dependencies ‘ROAuth’, ‘RCurl’ are not available for package ‘twitteR’
* removing ‘/usr/local/lib/R/site-library/twitteR’
The downloaded source packages are in
‘/tmp/RtmpeTWabe/downloaded_packages’
Warning messages:
1: In install.packages("twitteR", dep = TRUE) :
installation of package ‘RCurl’ had non-zero exit status
2: In install.packages("twitteR", dep = TRUE) :
installation of package ‘ROAuth’ had non-zero exit status
3: In install.packages("twitteR", dep = TRUE) :
installation of package ‘twitteR’ had non-zero exit status
> library(twitteR)
Error in library(twitteR) : there is no package called ‘twitteR’
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 0.2
year 2013
month 09
day 25
svn rev 63987
language R
version.string R version 3.0.2 (2013-09-25)
nickname Frisbee Sailing

Try to Install twitteR package, it will automatically try to install ROauth (since it's a suggested package), which depends on liboauth. You can download liboauth from http://liboauth.sourceforge.net.
Install Rcurl:
$sudo apt-get install libcurl4-openssl-dev
you can do in similar terms.Install an R package from the Linux command line. Let's say we would like to install the "likelihood" R package. you can download it by:
$ wget -q http://cran.csiro.au/src/contrib/likelihood_1.5.tar.gz
Next we use the R CMD INSTALL command to install it. Please note that depending on the installation destination you may need to have a superuser privileges:
$ sudo R CMD INSTALL likelihood_1.5.tar.gz
[sudo] password for lubos:
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘likelihood’ ...
** package ‘likelihood’ successfully unpacked and MD5 sums checked
** R
** data
** demo
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (likelihood)
NOTE: Be aware that some packages will require prerequisites. In that case use the above command to install prerequisites prior to your desired package.

Related

SDMTools package has non-zero exits

I have been trying to install the SDMTools package from github, using devtools, and have also tried to install from the Cran archive, below is the code for installing through github:
devtools::install_github("jjvanderwal/SDMTools")
this is then the code to try and install from Cran archive:
install.packages("https://cran.r-project.org/src/contrib/Archive/SDMTools/SDMTools_1.1-221.2.tar.gz", repos = NULL, type="source")
Both of these produce the same error,
* installing *source* package 'SDMTools' ...
** package 'SDMTools' successfully unpacked and MD5 sums checked
** using staged installation
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'SDMTools'
* removing 'C:/Users/micha/AppData/Local/R/win-library/4.2/SDMTools'
Warning in install.packages :
installation of package ‘C:/Users/micha/AppData/Local/Temp/Rtmps1CvqJ/downloaded_packages/SDMTools_1.1-221.2.tar.gz’ had non-zero exit status
If anyone would be able to help with any suggestions of what to try or any alternative methods, would be greatly appreciated!
I am currently working on version 4.2.1, (have also tried this on version 4.1.3).

Unable to install magrittr

Got a new company laptop and tried to install tidyr or installr, but it always fails because of magrittr.
If I want to install this package directly I'm getting the following error code:
* installing *source* package 'magrittr' ...
** package 'magrittr' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-33~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB="magrittr.dll" OBJECTS="pipe.o utils.o"' had status 127
ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/xxxx/Documents/R/win-library/3.3/magrittr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\xxxx\Documents\R\win-library\3.3" C:\Users\xxxx\AppData\Local\Temp\1\RtmpMHlNI9/downloaded_packages/magrittr_2.0.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘magrittr’ had non-zero exit status
I don't have admin privileges on this computer and could imagine that this could be the source of the problem, but I'm not sure.
What I tried:
Changed folder for libraries
Reinstalled all libraries
Tried different cron repos
Tried to install it on this way: install.packages("magrittr", update.packages(checkBuilt = TRUE))
Always the same error.
Is there any other way to install it?
Installing an archived version from source will work.
install.packages("cran.r-project.org/src/contrib/Archive/magrittr/…", repos = NULL, type="source")
You can utilize conda to install it:
conda install -c r r-magrittr
Reference:
https://anaconda.org/r/r-magrittr

unable to reinstall mass package

I'm working with R Version 3.3.0 where the most installed packages have the versions 3.3.0, 3.3.2, 3.3.3.
Unfortunately, it seems that I have overwritten the MASS package with the actual version.
I needed the "vars" package and therefore a newer mass version was required. Now I'd like to reestablish the old mass package again.
Is there a solution to this problem? At present I do not want to update all the packages to actual versions as I'm not sure about the consequences...
Here is the Error Message when trying to install an older version...
Thank you!
Tobias
install.packages("O:/Shared_with_everyone/Rserver/MASS_7.3-45.tar.gz", repos = NULL, type="source")
* installing *source* package 'MASS' ...
** package 'MASS' successfully unpacked and MD5 sums checked
** libs
Warning: running command 'make -f "C:/Users/Public/R-33~1.0/etc/x64/Makeconf" -f "C:/Users/Public/R-33~1.0/share/make/winshlib.mk" SHLIB="MASS.dll" WIN=64 TCLBIN=64 OBJECTS="MASS.o lqs.o"' had status 127
ERROR: compilation failed for package 'MASS'
* removing 'C:/Users/Public/R-3.3.0/library/MASS'
* restoring previous 'C:/Users/Public/R-3.3.0/library/MASS'
Warning messages:
1: running command '"C:/Users/Public/R-3.3.0/bin/x64/R" CMD INSTALL -l "C:\Users\Public\R-3.3.0\library" "O:/Shared_with_everyone/Rserver/MASS_7.3-45.tar.gz"' had status 1
2: In install.packages("O:/Shared_with_everyone/Rserver/MASS_7.3-45.tar.gz", :
installation of package ‘O:/Shared_with_everyone/Rserver/MASS_7.3-45.tar.gz’ had non-zero exit status
under https://cran.r-project.org/bin/windows/contrib the relevant old versions can be found, which worked for Windows. Regards, Tobias

Error when installing gpclib

R version 3.2.1
I downloaded gpclib_1.5-5.tar.gz from http://cran.r-project.org/web/packages/gpclib/index.html and attempted to install the package with
install.packages("D:/GIS/gpclib_1.5-5.tar.gz", repos = NULL, type = "source")
I get the error
* installing *source* package 'gpclib' ...
** package 'gpclib' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning: running command 'make -f "D:/R/R-3.2.1/etc/i386/Makeconf" -f "D:/R/R-3.2.1/share/make/winshlib.mk" SHLIB="gpclib.dll" OBJECTS="Rgpc.o gpc.o"' had status 127
ERROR: compilation failed for package 'gpclib'
* removing 'D:/R/R-3.2.1/library/gpclib'
Warning in install.packages :
running command '"D:/R/R-3.2.1/bin/x64/R" CMD INSTALL -l "D:\R\R-3.2.1\library" "D:/GIS/gpclib_1.5-5.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘D:/GIS/gpclib_1.5-5.tar.gz’ had non-zero exit status
How do I troubleshoot this?
Extra Information
I am ultimately trying to create heat maps, and am following this tutorial
http://spatialanalysis.co.uk/wp-content/uploads/2013/04/james_cheshire_ggplot_intro_blog.pdf
You'll need to install Rtools to install the R compiler libraries:
http://cran.r-project.org/bin/windows/Rtools/
Otherwise, R will have issues compiling from source code.

Installation of R package (tar.gz) in windows

I have a serious problem about R package installation in windows where I haven't got the administrator priveleges. For example, to install ggplot2 I did :
install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", repos = NULL, type="source")
I get this error message :
ERROR: dependencies 'plyr', 'gtable', 'reshape2', 'scales', 'proto' are not available for package 'ggplot2'
* removing 'C:/Program Files/R/R-3.1.1/library/ggplot2'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.1.1\library" "C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz"' had status 1
2: In install.packages("C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz", :
installation of package ‘C:/Users/Rasengan/Downloads/ggplot2_1.0.0.tar.gz’ had non-zero exit status
So the problem come from the pakage which depends ggplot2, what I tried is to install the different packages ('plyr', 'gtable', 'reshape2', 'scales', 'proto') one by one but the process is endless because 'plyr' depended of many or packages ...
Please could you help me, because I need shiny, ggplot2 and rCharts for my work.
Thank you in advance!
PS: the proto package doesn't depend of an other package, so I installed it easly :
> install.packages("C:/Users/Rasengan/Downloads/proto_0.3-10.tar.gz", repos = NULL, type="source")
* installing *source* package 'proto' ...
** package 'proto' successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
'proto.Rnw'
'protoref.Rnw'
** testing if installed package can be loaded
* DONE (proto)

Resources