Copy files from one folder to another based on a list from excel

I have a folder with thousands of files. I want to copy out a select group of these files to another folder. The files I want are listed in an excel spreadsheet. Is there a nice easy way to do this through R?

You can use the file.copy() function

file.copy(list_of_files, new_folder)

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.