[GenABEL-dev] [genabel-Bugs][2608] GenABEL-package loads too long if there is no internet connection

Yury Aulchenko yurii.aulchenko at gmail.com
Mon Dec 2 09:32:55 CET 2013


CRAN continues changing the layout of the page, and therefore these functions were disabled (see the beginning of the code). And for the moment quality of the code does not guarantee that the package starts if this happens. 

I do not know how we can easily solve this...

Y


On Dec 2, 2013, at 09:26 AM, <genabel-bugs at r-forge.r-project.org> <genabel-bugs at r-forge.r-project.org> wrote:

> Bugs item #2608, was changed at 2013-03-12 09:14 by Lennart Karssen
> You can respond by visiting: 
> https://r-forge.r-project.org/tracker/?func=detail&atid=2058&aid=2608&group_id=505
> 
> Status: Open
> Priority: 2
> Submitted By: Yurii Aulchenko (yurii)
> Assigned to: Nobody (None)
> Summary: GenABEL-package loads too long if there is no internet connection 
> Resolution: None
> Operating System: None
> Severity: trivial
> Hardware: None
> Version: None
> Component: GenABEL
> URL: 
> 
> 
> Initial Comment:
> Try loading the GenA-package ('library(GenABEL)") in R with and without internet connection. There is a clear difference. This is something to do with the (multiple???) 'timeout' argument - probably need to do quicker. 
> 
> ----------------------------------------------------------------------
> 
>> Comment By: Lennart Karssen (lckarssen)
> Date: 2013-12-02 09:26
> 
> Message:
> Maybe we can also add an option that allows the users to bypass the check completely. For example by setting an option in their ~/.Rprofile file like this:
> 
> options(GenABEL.update.check = FALSE)
> 
> 
> ----------------------------------------------------------------------
> 
> Comment By: Maksim Struchalin (maksim)
> Date: 2013-11-30 10:30
> 
> Message:
> I studied this problem a bit today. The delay is caused by R function readLines() in the .onAttach() function from file R/zzz.R. This function tries to read from a site without (!) checking whether this site is opened sucessfuly by function 'url()'. If there is no internet connection, then the readLines() get stuck for 20 seconds and return "try-error" (through try()). There are 3 calls of readLines() that should cause a total delay of 60 sec.
> 
> I see two possible solutions:
> 1) Use R package "RCurl" which provide more complex instruments for work with internet (hopefuly it will solve the problem). But, unfortunatelly, I can not install it. 
> 2) Try to 'ping' sites and see response. In this case, we check out whether sites are responding to our ping request and then read from those which reacted on our ping. It should work on win/max/linux as all of them have 'ping' system function. Disadvantages: This apporoach will not work if the site's mainteners will forbid ping response.
> 
> 
> 
> ----------------------------------------------------------------------
> 
> Comment By: Yurii Aulchenko (yurii)
> Date: 2013-03-12 10:23
> 
> Message:
> starting point: 
> function '.onAttach' in GenABEL/R/zzz.R
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting: 
> https://r-forge.r-project.org/tracker/?func=detail&atid=2058&aid=2608&group_id=505



More information about the genabel-devel mailing list