Description Usage Arguments Details Value Author(s)
Search and replace strings in a file
1 | search.replace(infile, outfile, replacements, overwrite = FALSE)
|
infile |
Path to input file |
outfile |
Path to output file (must be different) |
replacements |
Named charvec of length 1 (single replacement) or 2 (double replacement) |
overwrite |
Boolean. If FALSE then outfile must not yet exist. If TRUE and it already exists then it will be overwritten. |
This is a very limited interface and only meant for internal use.
It will replace all occurances of a string with another string. It may do 1 or 2 replacements.
The result is written to a second file.
This is done in C++ so very fast (I hope).
Nothing, but might throw an error.
Brad Friedman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.