I\'m a bit impressed because I couldn\'t find an answer so far.
I have a small R script that is loading data from one source and writing a few dozens Excel files fro
If you have access to a file archiver and can't install rJava
, a possible workaround that also works with other output formats is to save the files as usual and then archive them with password protection.
E.g. using 7-zip:
setwd("c:/Program Files/7-Zip/")
pwd <- "123"
shell(paste0("7z a d:/Data/myfile.zip d:/Data/myfile.xlsx -p", pwd))