Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: ask to install tutorial dependencies #253
Comments
|
This is a great idea! Do you think A difficulty that we have run into for I am open to a PR. Maybe Please do not include Thank you for the help with |
|
It looks like I'll see what I can put together Noted. |
Hi! @jules32, @angela-li, and I are working on improving the
use_tutorial()function forusethis, which sets up thelearnrtutorial 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.