View source: R/dollar_to_double_bracket.r
dollar_to_double_bracket | R Documentation |
.data$colname
to .data[["col_name"]]
When creating a package the preferred extraction operator is
.data[["col_name"]]
. What to do if you have the form
.data$col_name
littered throughout your package? Can you be bothered
finding and correcting them all?
dollar_to_double_bracket(
files = list.files(path = ".", pattern = ".R$", recursive = TRUE, full.names = TRUE)
)
files |
(character vector) Full path to the files to be changed |
This function will modify files in your package. It is strongly recommended to save a copy of your files or use git before diving in and using this function.
Nothing, called for side effect
## Not run:
dollar_to_double_bracket(files = "./R/get_data.R")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.