| osrm_clear_path | R Documentation |
Scans the .Rprofile file in the current project's root directory and
removes any lines that were added by osrm_install() to modify the PATH.
osrm_clear_path(quiet = FALSE)
quiet |
A logical value. If |
TRUE if the file was modified, FALSE otherwise.
if (identical(Sys.getenv("OSRM_EXAMPLES"), "true")) {
# Clean up a temporary project's .Rprofile
old <- setwd(tempdir())
on.exit(setwd(old), add = TRUE)
writeLines(
c(
"#added-by-r-pkg-osrm.backend",
'Sys.setenv(PATH = paste("dummy", Sys.getenv("PATH"), sep = .Platform$path.sep))'
),
".Rprofile"
)
osrm_clear_path(quiet = TRUE)
unlink(".Rprofile")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.