Replit for R, I get an error when I try to load the R pandoc package

Question:
How can I install and load the R pandoc package?

I tried this R code;

install.packages(pkgs = 'pandoc')

I got this:

R -s -f main.r
Installing package into ‘/home/runner/R-Demo/.config/R’
(as ‘lib’ is unspecified)
also installing the dependency ‘rlang’

trying URL ‘http://cran.us.r-project.org/src/contrib/rlang_1.1.1.tar.gz’
Content type ‘application/x-gzip’ length 762533 bytes (744 KB)
downloaded 744 KB

trying URL ‘http://cran.us.r-project.org/src/contrib/pandoc_0.2.0.tar.gz’
Content type ‘application/x-gzip’ length 42679 bytes (41 KB)
downloaded 41 KB

ERROR: failed to lock directory ‘/home/runner/R-Demo/.config/R’ for modifying
Try removing ‘/home/runner/R-Demo/.config/R/00LOCK-rlang’
ERROR: dependency ‘rlang’ is not available for package ‘pandoc’

removing ‘/home/runner/R-Demo/.config/R/pandoc’
The downloaded source packages are in
‘/tmp/RtmpeN8Tnq/downloaded_packages’
Warning messages:
1: In install.packages(pkgs = “pandoc”) :
installation of package ‘rlang’ had non-zero exit status
2: In install.packages(pkgs = “pandoc”) :
installation of package ‘pandoc’ had non-zero exit status

Hey @TomCal!

I wasn’t able to reproduce the issue you described. When I added the R code to install the pandoc package and ran the Repl, it appeared that the package was installed correctly: