Executing R scripts during package installation
问题 Hopefully this has a straightforward answer, but I haven't been able to find it as yet. I'm writing an R package, and when installed on Windows I want it to execute a script that searches for a system file i.e. list.files(path = "C:/Program Files/, ...) and then saves that path to the package directory as a text file for later reference. I tried saving the script as src/install.libs.R but that stopped my package from building. In case there is an alternative solution, I'm trying to save the