Learn R Programming

staplr (version 2.9.0)

rename_files: Rename multiple files

Description

Rename multiple files in a directory and write renamed files back to directory

Usage

rename_files(input_directory = NULL, new_names)

Arguments

input_directory

the path of the input PDF files. The default is set to NULL. IF NULL, it prompt the user to select the folder interactively.

new_names

a vector of names for the output files.

Value

this function writes renamed files back to directory

References

https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/

Examples

Run this code
# NOT RUN {
#if the directory contains 3 PDF files
rename_files(new_names = paste("file",1:3))
# }

Run the code above in your browser using DataLab