Error in installing package "ggfittext"

Hello,

I was today trying to install new package but somehow it is not installing. Can someone please have a look?
Here is a code:

> library(ggfittext)
Error in library(ggfittext) : there is no package called ‘ggfittext’
> install.packages("ggfittext")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/chetan/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘shades’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/shades_1.4.0.zip'
Content type 'application/zip' length 87791 bytes (85 KB)
downloaded 85 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/ggfittext_0.9.1.zip'
Content type 'application/zip' length 781233 bytes (762 KB)
downloaded 762 KB

package ‘shades’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\chetan\Documents\R\win-library\4.0’ for modifying
Try removing ‘C:\Users\chetan\Documents\R\win-library\4.0/00LOCK’
> library(ggfittext)
Error in library(ggfittext) : there is no package called ‘ggfittext’

Follow the instructions from the error message and remove that file.

1 Like

This topic was automatically closed 7 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.