I am looking for a way how to tell R to not include specific folder from inside /inst when creating a package. There's bunch of .png tiles inside the folder, which slows down package creation considerably.
I am using environmental variables to tell R (packaged shiny app) to use either offline or online mode. In online mode no tiles are needed (OSM from api are used by default) which is actually better for package testing.
In the same vein, I would like to use some if/else to check on environmental variables when creating a package. If the variable says "offline", it would include the folder when creating the package, if "online" it would skip it.