setFlowRepositoryURL: Set FlowRepository URL addresss.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/settings.R

Description

This function sets the FlowRepository URL. Normally, the URL should be https://flowrepository.org/. This function can be used if we want this library to communicate with a different instance of FlowRepository (e.g., some third party FlowRepository installation, or a testing installation used by developers).

Usage

1

Arguments

url

URL of the FlowRepository instance that the library should be communicating with.

Details

FlowRepository URL is being stored with other settings in a global environment in the library namespace. The getFlowRepositoryURL and setFlowRepositoryURL are being used to get and set the URL, respectively.

Value

The return value is not expected to be useful. It is just the the value of evaluting the URL assignment expression, which is typically an object of class character containing a copy of the URL that was set.

Author(s)

Josef Spidlen

References

Spidlen Josef. FlowRepository Resources for Developers.
http://flowrepository.org/developers

See Also

getFlowRepositoryURL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
    ## Save current URL
    tmpURL <- getFlowRepositoryURL()
    
    ## Temporarily set the URL to localhost
    setFlowRepositoryURL("http://localhost")
    
    ## Check that it is set
    getFlowRepositoryURL()
    
    ## You would need to run your own local
    ## FlowRepository instance on that URL for this to make sense

    ## Communicate with your local FlowRepository instance
    
    ## Now set it back to the original URL
    setFlowRepositoryURL(tmpURL)

FlowRepositoryR documentation built on Nov. 8, 2020, 7:26 p.m.