Scenario: I am running a workshop in which I share the link to a project that the students open in their own RStudio Cloud account. This is a workshop on creating R packages.
Here is the demo project that students were using
If I run
pkgdown::build_site(override = list(destination = "~/docs"))
on my project (the one I am sharing with the link above), then the students are unable to open the project. They get an error that says cannot open docs folder presumably because it was trying to open my home/docs which the students cannot access. I could not figure out any way to fix this problem except by running
pkgdown::build_site()
which then created a docs folder in the project. Then the students could open the project as docs was in the project. I didn't want docs in the project, but if I deleted the folder, the students would get the docs folder does not exist error again.
Any way to stop this from happening or at least is there a way for me to control what directory the project tries to open when the students open my link (above)?