-
Notifications
You must be signed in to change notification settings - Fork 599
Swirl & Permissions
Sean Kross edited this page Aug 14, 2018
·
1 revision
- Swirl creates and stores files and folders on a user's computer when installing new courses or to save a user's progress in a lesson.
- Courses are installed in the directory that results from
system.file("Courses", package = "swirl")
- User progress and logs are saved in the directory that results from
system.file("user_data", package = "swirl")
- Courses are installed in the directory that results from
- If the user does not have write permissions, they can change the location of where swirl accesses this data.
- To set course installation location use:
swirl_options(swirl_courses_dir = file.path("some", "other", "directory"))
- To set where user progress and logs are saved use:
swirl_options(swirl_data_dir = file.path("some", "other", "directory"))
- To set course installation location use:
- These options need to be set during every R session, therefore they should be added to the user's
.Rprofile
. You can find out more about R start-up and the.Rprofile
file here.