ices-tools-prod / icesTAF

Functions to support the ICES Transparent Assessment Framework
GNU General Public License v3.0
5 stars 7 forks source link

Apply .buildignore to stored packages in bootstrap/software #36

Open iagomosqueira opened 2 years ago

iagomosqueira commented 2 years ago

Packages taken from github into bootstrap/software as tar.gz contain the whole repository, minus the .git folder, including files listed in .Rbuldignore.

If we assume the source code is there to be installed, not to extend it or run tests, wouldn't it be more economical in space to keep the tar.gz returned by R CMD build?

For FLasher, for example, the current tar,gz created by taf.bootstrap() takes 4.25 Mb, while the built package uses 775Kb.

What would be the reasons to keep the (almost) full repository instead? Could taf.bootstrap at least apply .Rbuildignore?

iagomosqueira commented 1 year ago

This would also be useful for the workflow I am trying to use explained in #37, @arni-magnusson. Is this an option easy to implement given the R tools being used to create the tar.gz in bootstrap/software?