Closed Joe-Heffer-Shef closed 3 months ago
Tried reinstalling tinkr
to no avail
> renv::install("tinkr")
> packageVersion("tinkr")
[1] ‘0.2.0’
> sandpaper::build_lesson()
xslt error: compilation error: file C:/Users/my_username/AppData/Local/Temp/Rtmpag6R0S/file34c466a13f52 line 10 element import
xslt error: xsl:import : unable to load C://stfdata09/home/CS/my_username/ManWin/My%20Documents/R/win-library/4.2.1/tinkr/stylesheets/xml2md_gfm.xsl
Error: fatal problem(s) in xsltParseStylesheetDoc: xsl:import : unable to load C://stfdata09/home/CS/my_username/ManWin/My%20Documents/R/win-library/4.2.1/tinkr/stylesheets/xml2md_gfm.xsl
In addition: Warning message:
In doc_xslt_apply(doc$doc, stylesheet$doc, paramstr) :
failed to load external entity "C://stfdata09/home/CS/my_username/ManWin/My%20Documents/R/win-library/4.2.1/tinkr/stylesheets/xml2md_gfm.xsl" [1549]
Hi @Joe-Heffer-Shef, we has a similar issue for @RicCampbell which appeared to be a problem with trying to access the library files on a shared drive on Windows. Here's the workaround that we used to resolve it:
Create a directory on local storage e.g.
C:\Users\cm1rjcx\Rpackages
Edit ~/.Renviron - if you have usethis installed you should be able to do:
usethis::edit_r_environ()
Add this line:
R_LIBS_USER="C:\Users\cm1rjcx\Rpackages"
Save file and restart R.
You'll have to start again with installing packages i.e.
Install the template packages to your R library
install.packages(c("sandpaper", "varnish", "pegboard", "tinkr"))
Then try testing the installation again...
Also logged as an issue here: https://github.com/carpentries/sandpaper-docs/issues/191
I fixed this by recreating my RStudio project and using renv to make a virtual environment. It seems to now have installed the package in my local user area, rather than U: network drive.
renv::activate()
renv::install(c("sandpaper", "varnish", "pegboard", "tinkr"),
repos = c("https://carpentries.r-universe.dev/", getOption("repos")))
It works now!
R output:
sandpaper::serve()
session info