So having a user argument might be best.  Or defining a unique cache location 
for your package would be another option.


Lori Shepherd

Bioconductor Core Team

Roswell Park Cancer Institute

Department of Biostatistics & Bioinformatics

Elm & Carlton Streets

Buffalo, New York 14263

________________________________
From: Bioc-devel <bioc-devel-boun...@r-project.org> on behalf of Sean Davis 
<seand...@gmail.com>
Sent: Friday, December 1, 2017 11:06:39 AM
To: Michael Love
Cc: bioc-devel@r-project.org
Subject: Re: [Bioc-devel] BiocFileCache for developers

On Fri, Dec 1, 2017 at 10:28 AM, Michael Love <michaelisaiahl...@gmail.com>
wrote:

> hi,
>
> I'm writing a function which currently uses BiocFileCache to store a
> small data.frame and one or more TxDb objects, so that these objects
> are persistent and available across sessions (or possible available to
> multiple users).
>
> In the simplest case, I would call
>
> bfc <- BiocFileCache()
>
> inside my function, which will check the default location:
>
> user_cache_dir(appname = "BiocFileCache")
>
> In general, should developers also support the user specifying a
> specific location for the BiocFileCache? So functions using
> BiocFileCache should have an argument that overrides the above
> location?
>

On some systems, the user home directory is not large (such as on HPC
systems) or has strong quotas. The default user_cache_dir may not be the
best choice there.

Sean


>
> thanks,
> Mike
>
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel
>



--
Sean Davis, MD, PhD
Center for Cancer Research
National Cancer Institute
National Institutes of Health
Bethesda, MD 20892
https://seandavi.github.io/
https://twitter.com/seandavis12

        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel


This email message may contain legally privileged and/or confidential 
information.  If you are not the intended recipient(s), or the employee or 
agent responsible for the delivery of this message to the intended 
recipient(s), you are hereby notified that any disclosure, copying, 
distribution, or use of this email message is prohibited.  If you have received 
this message in error, please notify the sender immediately by e-mail and 
delete this email message from your computer. Thank you.
        [[alternative HTML version deleted]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to