install_course: Install a course from The swirl Course Network or install a...

Description Usage Arguments See Also Examples

View source: R/install_course.R

Description

Version 2.4 of swirl introduces a new, simple, and fast way of installing courses in the form of .swc files. This function allows a user to grab a .swc file from The swirl Course Network which is maintained by Team swirl, or the user can use this function to install a local .swc file. When using this function please only provide an argument for either course_name or swc_path, never both.

Usage

1
install_course(course_name = NULL, swc_path = NULL, force = FALSE)

Arguments

course_name

The name of the course you wish to install.

swc_path

The path to a local .swc file. By default this argument defaults to file.choose() so the user can select the file using their mouse.

force

Should course installation be forced? The default value is FALSE.

See Also

Other InstallCourses: InstallCourses, install_course_directory(), install_course_dropbox(), install_course_github(), install_course_google_drive(), install_course_url(), install_course_zip(), install_from_swirl(), uninstall_all_courses(), uninstall_course(), zip_course()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

# Install the latest version of Team swirl's R Programming course.
install_course("R Programming")

# Install a local .swc file by using your mouse and keyboard to select the
# file.
install_course()

# Install a .swc file from a specific path.
install_course(swc_path = file.path("~", "Downloads", "R_Programming.swc"))


## End(Not run)

swirldev/swirl documentation built on Jan. 17, 2020, 6:28 p.m.