[Bioc-devel] Bioconductor issue 395: How to stop generating cache folder?
Martin Morgan
martin.morgan at roswellpark.org
Thu Jun 29 11:59:34 CEST 2017
On 06/28/2017 09:51 PM, Shakil Mohamad wrote:
> Hi,
>
> My package name is OPWeight in the GitHub. My issue is, during the R cmd
> check, my package always generates the OPWeight_cache folders. I basically
> need to stop generating OPWeight_files/, OPWeight_cache/, OPWeight.html,
> and OPWeight.R in order to make the package in an acceptable size, which is
> less than 4MB.
>
> Do I need to delete those files manually all the time or is there any way
> to automatically stop generating those files?
They are being generated because of this line in your vignette
https://github.com/mshasan/OPWeight/blame/master/vignettes/OPWeight.Rmd#L18
where you say cache=TRUE. Set cache=FALSE or maybe cache =
getOptions("OPWEIGHT_CACHE", FALSE) (that would need to be tested).
Also, remove the vignette/OPWeigth_* directories from git, and / or add
~/.Rbuildignore plain text file with vignettes/OPWeight_*.
Test with a new clone of your package
git clone --depth 1 ...
R CMD build OPWeigth
Consider 'cleaning' your git repository to remove traces of the large
cache files, using
https://github.com/IBM/BluePic/wiki/Using-BFG-Repo-Cleaner-tool-to-remove-sensitive-files-from-your-git-repo
Martin
>
> Thank you
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>
This email message may contain legally privileged and/or...{{dropped:2}}
More information about the Bioc-devel
mailing list