Error in library(caTools) : there is no package called ‘caTools’ Execution halted


#1

I am trying to install caTools but it is showing the same error everytime....I have checked there is no such package already.
Even when I am trying to install other packages I get same error say I was trying to install "Boruta" I again got error saying there is no package called "caTools".
please help me,I am new to RStudio and R.


#2

you have to install the package before you can call it:

install.packages('caTools')
library(caTools)

note that the install.packages call has quotes but the llibrary call does not. See if that helps!


#3
Installing package into ‘/home/zummi/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependency ‘bitops’

trying URL 'http://cran.rstudio.com/src/contrib/bitops_1.0-6.tar.gz'
Content type 'application/x-gzip' length 8734 bytes
==================================================
downloaded 8734 bytes

trying URL 'http://cran.rstudio.com/src/contrib/caTools_1.17.1.tar.gz'
Content type 'application/x-gzip' length 63358 bytes (61 KB)
==================================================
downloaded 61 KB
Error in library(caTools) : there is no package called ‘caTools’
Execution halted
Warning in install.packages :
  installation of package ‘bitops’ had non-zero exit status
Error in library(caTools) : there is no package called ‘caTools’
Execution halted
Warning in install.packages :
  installation of package ‘caTools’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp2hXu2k/downloaded_packages’

this error I am getting after install.packages('caTools') on console


#4

Hmmm... Have you been able to install other libraries?

can you provide the output from sessionInfo() and getOption("repos")

And when you post the results can you please put it inside of triple tics: ``` so that the markdown renderer does not molest it and it's more readable?


#5

I am really sorry for my stupidity as it was my first time posting any query here and thanks a lot for the suggestion.
yes, I have installed other libraries earlier but ever since I tried installing caTools I could not install anything else since then.

R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

locale:
 [1] LC_CTYPE=en_IN.UTF-8       LC_NUMERIC=C               LC_TIME=en_IN.UTF-8       
 [4] LC_COLLATE=en_IN.UTF-8     LC_MONETARY=en_IN.UTF-8    LC_MESSAGES=en_IN.UTF-8   
 [7] LC_PAPER=en_IN.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.2.3


#6
> getOption("repos")
                      CRAN 
"http://cran.rstudio.com/" 
attr(,"RStudio")
[1] TRUE
> 


#7

I can't say for sure that this is the cause of your issues, but your version of R is really outdated. Yours is more than two years old. Could you upgrade R and try again?


#8

yes it worked....thank you so much


#9

since I installed caTools that worked fine but now I am not able to install lubridate.
error is something like this:


R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("lubridate")
Installing package into ‘/home/zummi/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/lubridate_1.7.4.tar.gz'
Content type 'application/x-gzip' length 449850 bytes (439 KB)
==================================================
downloaded 439 KB

* installing *source* package ‘lubridate’ ...
** package ‘lubridate’ successfully unpacked and MD5 sums checked
** libs
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I. -I./cctz/include/ -I./cctz/src/ -I"/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include"    -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
In file included from /home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/InternalFunction.h:52:0,
                 from /home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp.h:67,
                 from RcppExports.cpp:4:
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:18: warning: null character(s) ignored
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));
                  ^
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:9: error: stray ‘\377’ in program
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));
         ^
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:22: warning: null character(s) ignored
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));

/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:270: warning: null character(s) ignored
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));
                                                                                                                                                                                                                                                                              ^
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:9: error: stray ‘\377’ in program
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));
         ^
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h: In constructor ‘Rcpp::InternalFunction_Impl<StoragePolicy>::InternalFunction_Impl(RESULT_TYPE (*)(U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51))’:
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: error: type/value mismatch at argument 2 in template parameter list for ‘template<class T, template<class> class StoragePolicy, void (* Finalizer)(T*), bool finalizeOnExit> class Rcpp::XPtr’
         set(XPtr<   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �   �U48, U49, U50, U51> >(new CppFunction52<RESULT_TYPE,U0, U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17, U18, U19, U20, U21, U22, U23, U24, U25, U26, U27, U28, U29, U30, U31, U32, U33, U34, U35, U36, U37, U38, U39, U40, U41, U42, U43, U44, U45, U46, U47, U48, U49, U50, U51>(fun), false));
                                                                                                                                                                                                                                                                                                    ^
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: note:   expected a class template, got ‘U49’
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: error: type/value mismatch at argument 3 in template parameter list for ‘template<class T, template<class> class StoragePolicy, void (* Finalizer)(T*), bool finalizeOnExit> class Rcpp::XPtr’
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: note:   expected a constant of type ‘void (*)(T*)’, got ‘U50’
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: error: type/value mismatch at argument 4 in template parameter list for ‘template<class T, template<class> class StoragePolicy, void (* Finalizer)(T*), bool finalizeOnExit> class Rcpp::XPtr’
/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include/Rcpp/generated/InternalFunction__ctors.h:394:292: note:   expected a constant of type ‘bool’, got ‘U51’
/usr/lib/R/etc/Makeconf:168: recipe for target 'RcppExports.o' failed
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘lubridate’
* removing ‘/home/zummi/R/x86_64-pc-linux-gnu-library/3.4/lubridate’
Warning in install.packages :
  installation of package ‘lubridate’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpwYVWth/downloaded_packages’
> 

there is long list of such errors in between which i din't copied ...can u please help me?