Changeset 2431


Ignore:
Timestamp:
11/09/09 13:46:47 (2 years ago)
Author:
jvelde
Message:

RCurl loading under Unix hotfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molgenis/3.3/src/org/molgenis/generators/R/RApi.R.ftl

    r2369 r2431  
    3434MOLGENIS.connect <- function( servletURL, dbUser=NULL ) 
    3535{ 
    36     library( RCurl ) 
     36        # Loading RCurl under Unix this way will ONLY work when the package is installed as root. 
     37        # User installations are in different directories. 
     38        # If users load it in a custom way, the library must not be sourced again. 
     39        # If they do not load it.. TODO: write alternative call to load RCurl 
     40        if(!any(loadedNamespaces()=="RCurl")){ 
     41        library( RCurl ) 
     42    } 
    3743    #used to send messages to server 
    3844 
Note: See TracChangeset for help on using the changeset viewer.