Feature request: ask to install tutorial dependencies #253
Labels
difficulty: intermediate
Enterprising community members could help
effort: low
< 1 day of work
help wanted
Solution is well-specified enough that any community member could fix
priority: medium
Could be fixed before next release
Hi! @jules32, @angela-li, and I are working on improving the
use_tutorial()
function forusethis
, which sets up thelearnr
tutorial package format . Our two main use cases are (1) package developers that want to include tutorials as documentation and (2) course instructors that want to distribute a bundle of tutorials to students.For course instructors, it's especially important to minimize friction related to package installs. Thus, it would be great if
run_tutorial()
would prompt the user to install packages that the tutorial depends on.@cderv recommended 3 options to find the dependencies in the tutorial:
renv::dependencies()
- returns a list of dependencies contained in a file/folderattachment::att_from_rmds()
- returns a list of dependencies contained in a file/folderrsconnect::appDependencies()
- returns a full tree of dependencies contained in a file/folderutils::menu()
could then be used to ask users if it's okay to install all the dependencies.The text was updated successfully, but these errors were encountered: