Description Usage Arguments Examples
View source: R/import_scripts.R
Source in a directory of R scripts
1 2 | import_scripts(path, pattern = "*.R", recursive = FALSE,
verbose = FALSE)
|
path |
The directory path |
pattern |
Extension pattern |
recursive |
Grab files in subdirectories? |
verbose |
Should script be sourced quietly? |
1 2 3 4 5 6 7 8 | ## Not run:
import_scripts(path = "./data", pattern = ".rda")
# Import scripts
import_scripts(path = "./data-raw", pattern = "get_droids.R", verbose = TRUE)
import_scripts(path = "foo") # Should fail with a warning, not an error
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.