Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandpaper installation on Windows error #191

Open
RicCampbell opened this issue Apr 3, 2024 · 1 comment
Open

Sandpaper installation on Windows error #191

RicCampbell opened this issue Apr 3, 2024 · 1 comment

Comments

@RicCampbell
Copy link

Hello,

I've just run through the Workbench setup for Windows, and ran into an error when building a lesson (sandpaper::build_lesson(tmp, preview = FALSE, quiet = TRUE), under 'test your installation').

I believe that it was looking in the wrong location for a tinkr stylesheet, as all packages were installed on a network drive. Installing the packages locally and updating the Renviron file seems to have worked though.

@tdjames1 can provide more information as she helpfully troubleshooted this for me.

@tdjames1
Copy link

tdjames1 commented Apr 3, 2024

Hi,

@RicCampbell was seeing an error like this:

xslt error: xsl:import : unable to load C://path/to/R/win-library/4.2.1/tinkr/stylesheets/xml2md_gfm.xsl

where //path/to was a resolved form of the original path, U:\path\to (which maps to a network drive).

I tracked the problem down to:
https://github.com/carpentries/pegboard/blob/e9ca729c7db3ca97f016480679f9f58d115d2721/R/get_stylesheet.R#L2
where the call fs::path_real(tinkr::stylesheet()) tries to resolve the file path to the networked drive and the resulting path cannot be located.

We thought it would be useful to raise an issue to highlight the problem for other Windows users. As @RicCampbell mentioned, we found a workaround of setting R_LIBS_USER to a local directory in the .Renviron file and reinstalling the packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants