Unable to install package pillar

Hi I am new to R! Very much making baby steps and trying to learn on online courses.

Trying to do a meta-analysis and to do so I need to use the 'metamisc' package.

It was working fine then I came back to work on it and found the following whne trying to reload the packages I needed:

library(metamisc)
library(dplyr)
install.packages("runjags")
install.packages("rjags")
library(runjags)
library(rjags)
library(ggplot2)
library(gridExtra)

But I then get error codes like this :

> library(metamisc)
Error: package or namespace load failed for ‘metamisc’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘pillar’
In addition: Warning message:
package ‘metamisc’ was built under R version 3.6.3

I tried:

install.packages("pillar", dependencies = TRUE)

But got error code:

# install.packages("devtools")
devtools::install_github("r-lib/pillar")

But got error code:

> install.packages("pillar", dependencies = TRUE)

  There is a binary version available but the source version is later:
       binary source needs_compilation
pillar  1.6.0  1.6.1             FALSE

installing the source package ‘pillar’

trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1111747 bytes (1.1 MB)
downloaded 1.1 MB

Error in setwd("M:") : cannot change working directory
Execution halted
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\umrna\AppData\Local\Temp\RtmpugaXQt\downloaded_packages’

Finally tried:

# install.packages("devtools")
devtools::install_github("r-lib/pillar")

But got error code:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘cachem’

Are there any recommendations on how to get around this problem? My working directory was working fine for installing before and when I use setwd() and getwd() it works fine.

I'd be very grateful for any help!

Many thanks

Ramesh

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.