After trying to install a package from GitHub (to no avail and gave up); I tried to do other things. I found out I can't load the dplyr package anymore.
When I run library(dplyr), I get
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘pillar’
In addition: Warning message:
package ‘dplyr’ was built under R version 3.6.3
After that I tried removing and reinstalling the "pillar" pacakge to no avail. My console:
remove.packages("pillar")
Removing package from ‘C:/Users/user/Documents/R/win-library/3(dot)6’
(as ‘lib’ is unspecified)
Error in remove.packages : there is no package called ‘pillar’
install.packages("pillar")
Installing package into ‘C:/Users/user/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is
later:
binary source needs_compilation
pillar 1.6.0 1.6.1 FALSE
Sorry, but I can't follow. How do I do that? Cause I don't think R gives me an option when I run install.packages("pillar").
To my understanding, my R version is already the latest version.
When I go to Help -> Check for Updates, it says I'm already using the latest version of RStudio.
I also just ran install.packages("installr"), and then ran the following codes again:
When both binary and source versions are available, R asks you if you want to install from source, if you answer "no" to this question, it installs the binary version.
You might be running the latest RStudio version but that is not the same as having the latest R version.
You have R 3.6 installed and the latest version is 4.1.0, you can download it from here
To clarify this for others reading this thread, RTools is a software that contains the necessary tools for compiling R packages and you need to have it installed in your system if you want to compile packages from source in Windows systems. It is not used when you install packages from precompiled binaries.
Yeah I did. Just to follow Rtools's guide, I ran Sys.which("make") and the console showed
make
"C:\rtools40\usr\bin\make.exe"
but when I tried install.packages("jsonlite", type = "source"), I get
Installing package into ‘C:/Users/user/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/jsonlite_1.7.2.tar.gz'
Content type 'application/x-gzip' length 421716 bytes (411 KB)
downloaded 411 KB
Warning in install.packages :
installation of package ‘jsonlite’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\user\AppData\Local\Temp\Rtmpch3Yvc\downloaded_packages’
I'm not sure if this should be a concern. I ran...
and the binary installed sucessfully!
I'm not sure if I can continue asking this but I would like to run devtools::install_github("doomlab/MeMoBootR"), but as you can see below, it still fails.
package ‘colorspace’ successfully unpacked and MD5 sums checked
package ‘viridisLite’ successfully unpacked and MD5 sums checked
package ‘RColorBrewer’ successfully unpacked and MD5 sums checked
package ‘munsell’ successfully unpacked and MD5 sums checked
package ‘labeling’ successfully unpacked and MD5 sums checked
package ‘farver’ successfully unpacked and MD5 sums checked
package ‘scales’ successfully unpacked and MD5 sums checked
package ‘isoband’ successfully unpacked and MD5 sums checked
package ‘gtable’ successfully unpacked and MD5 sums checked
package ‘shape’ successfully unpacked and MD5 sums checked
package ‘ggplot2’ successfully unpacked and MD5 sums checked
package ‘diagram’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\user\AppData\Local\Temp\Rtmpch3Yvc\downloaded_packages
Error: Failed to install 'MeMoBootR' from GitHub:
System command 'Rcmd.exe' failed, exit status: -1, stdout + stderr empty
Note: I replaced ":" with |COLON| in the above console output.