[R] Reducing of car package when loading
David Winsemius
dwinsemius at comcast.net
Sat Jan 30 07:14:10 CET 2016
> On Jan 29, 2016, at 10:11 AM, Brian Bolt <brian at mcneilco.com> wrote:
>
> I have a non-CRAN package that has a large number of dependencies and as such, the memory footprint from loading my package in R is becoming larger. I use Rapache often to pre-load my package and provide web services for my code, so the consistent memory footprint is hurting other processes on the machine.
>
> I have created an R docker container and when I start R, the memory footprint is 27.89MB, after loading the car package, the memory footprint shoots up to 131.4MB. A difference of 103.51MB. For comparison, loading ggplot2 only gives a difference of 9.32MB.
>
> Is there something I can do, without removing dependencies, that could relieve some of my memory footprint? To be clear, I am not just asking about the car package but reducing memory dependence in general. Can I force the R package loader to only load functions from packages that I am dependent on? Is there a way to not load all of the datasets?
You could be more specific about which functions you need.
>
> Thanks,
> Brian
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list