Description Usage Arguments Examples
findPDF
scans all directories and subdirectories of a given path for PDF files (.pdf) containing
a specific pattern. Hits can be copied to a new folder.
1 2 3 |
path |
a character vector, path to be scanned. The default corresponds to the working directory, getwd(). |
pattern |
a pattern (regular expression) to search for. |
case.sensitive |
a logical value. If |
show.results |
a logical value. If |
copy |
a logical value. If |
folder |
a character vector, path or name of new folder to copy matching PDF files to. |
overwrite |
a logical value. If |
1 2 3 4 5 6 | # Find all PDF files in the package folder that contain the name Hanna
findPDF(path = system.file(package = "findR"), pattern = "Hanna")
# Save results in a data frame and show hits
dt <- findPDF(path = system.file(package = "findR"), pattern = "Hanna", show.results = TRUE)
dt
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.