[GenABEL-dev] extremely long package load time due to checkPackageVersionOnCRAN() call on package load

L.C. Karssen lennart at karssen.org
Fri Aug 31 09:10:40 CEST 2012


On 30/08/12 23:16, Yurii Aulchenko wrote:
>>> library(GenABEL,versionCheck=FALSE) does not?
>>
>> Sounds like a good plan. Is this possible?
>>
> 
> :) Looking at the help, this does not seem to be straightforward
> actually. Hope Karl has some idea!

We could abuse a global variable :-/. Or does R have something akin to
environment variables?
We could also use a system environment variable and check its value with
Sys.getenv().

But I think setting an option would be the best solution if we can't add
an argument when loading the package. For example, a user could add the
following to his/her ~/.Rprofile:
 options(GA.update.check = FALSE)
And then we could check for that in zzz.R:
 if (getOption("GA.update.check") != FALSE) {
	# Do update check
 }	




Lennart.

> 
>>>
>>> We should also probably change the "timeout = 10" default value to say 3
>>> or 5 - if everybody agrees I can do that (actually I am in the process
>>> of preparing new release, 1.7-1 - will be out in a couple of days).
>>
>> I agree. 5 seconds is more reasonable.
>>
> 
> Ok, changing to 5 for the next release
> 
> Yurii
> 
>>
>> Lennart.
>>
>>>
>>> Yurii
>>>
>>> On Tue, Mar 6, 2012 at 2:10 PM, Karl Forner <karl.forner at gmail.com
>>> <mailto:karl.forner at gmail.com>> wrote:
>>>
>>>    Hello,
>>>
>>>    We use a lot GenABEL, and we have a very annoying issue with very
>>>    long package load time.
>>>    We figured out it was due to the checkPackageVersionOnCRAN() on
>>>    package load.
>>>    If the website is down, or if our own network or http proxy has
>>>    issues, we have to wait until the timeout expires.
>>>
>>>    We are not a big fan anyway of this update feature, at least not by
>>>    default: suppose that we run thousands of batch jobs a on cluster
>>>    that does not have internet acces, it does not seem reasonalble to
>>>    spends minutes for each jobs trying to connect without any hope of
>>>    success
>>>    just to knwo if we have the latest version.
>>>
>>>    So we would like that either you disable this feature, or you make
>>>    it optional, or you provide a mechanism to disable it.
>>>
>>>    Do you think this is a reasonable request ?
>>>    If you agree, we could even try to help you implement it.
>>>
>>>    Best regards,
>>>
>>>    Karl Forner
>>>
>>>
>>>    _______________________________________________
>>>    genabel-devel mailing list
>>>    genabel-devel at lists.r-forge.r-project.org
>>>    <mailto:genabel-devel at lists.r-forge.r-project.org>
>>>    https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/genabel-devel
>>>
>>>
>>>
>>>
>>> --
>>> -----------------------------------------------------
>>> Yurii S. Aulchenko
>>> Director, YuriiA consulting,
>>> Rotterdam, The Netherlands
>>> yurii [dot] aulchenko [monkey] gmail [dot] com
>>>
>>> [ Publications <http://scholar.google.nl/citations?user=wdqXTTEAAAAJ> ]
>>> [ Twitter <http://twitter.com/YuriiAulchenko> ] [ LinkedIn
>>> <http://nl.linkedin.com/in/yuriiaulchenko> ]
>>>
>>>
>>>
>>> _______________________________________________
>>> genabel-devel mailing list
>>> genabel-devel at lists.r-forge.r-project.org
>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/genabel-devel
>>>
>>
>> --
>> -----------------------------------------------------------------
>> L.C. Karssen
>> Utrecht
>> The Netherlands
>>
>> lennart at karssen.org
>> http://blog.karssen.org
>>
>> Stuur mij aub geen Word of Powerpoint bestanden!
>> Zie http://www.gnu.org/philosophy/no-word-attachments.nl.html
>> ------------------------------------------------------------------
>>
>> _______________________________________________
>> genabel-devel mailing list
>> genabel-devel at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/genabel-devel

-- 
-----------------------------------------------------------------
L.C. Karssen
Utrecht
The Netherlands

lennart at karssen.org
http://blog.karssen.org

Stuur mij aub geen Word of Powerpoint bestanden!
Zie http://www.gnu.org/philosophy/no-word-attachments.nl.html
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/genabel-devel/attachments/20120831/746b7ded/attachment.sig>


More information about the genabel-devel mailing list