gp_change_file | R Documentation |
Utility function to make changes to a source file
gp_change_file(
path = system.file("js/src/App.js", package = "geoplumber"),
what = " * geoplumber R package code.",
pattern = " * geoplumber R package code.",
before = TRUE,
replace = FALSE,
verbose = FALSE
)
path |
path of file to change, used in readLines() |
what |
vector to add to path |
pattern |
where to add the what to, 1st is used. Unique is best. |
before |
s after the pattern |
replace |
or replace pattern |
verbose |
cat the change out |
{
gp_change_file(replace = TRUE, verbose = TRUE) # replacing the comment itself.
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.