Description Usage Arguments Details Value Examples
This function is used to detach packages that have been added by a student script.
1 | reset_path(old_path)
|
old_path |
A character vector of package namespaces. This is usually
the output of |
When a student script is rendered using render_one
,
new packages might be added to the search path. These may conflict with the
instructors' search path order, or with subsequent runs of
render_one
on students. Hence there is a need to reset the
search path before this is done.
This function does not unload namespaces. It only detaches them from the search path. For a difference between the two, please see Hadley's page.
There is no object returned. This function is called for it's side- effect of altering the search path.
1 2 3 | opath <- search()
# Load a package
reset_path(opath)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.