When you say "transporting plot files to the latex folder," are you asking how to move a file from one directory to another (or save it to a specific location)?
If so, you might want to look at the here and/or fs packages:
You can also see the base R equivalents of fs functions in the vignette here.