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).
URL of the FlowRepository instance that the library should be communicating with.
FlowRepository URL is being stored with other settings in a
global environment in the library namespace.
getFlowRepositoryURL and setFlowRepositoryURL are
being used to get and set the URL, respectively.
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
character containing a copy of the URL that was set.
Spidlen Josef. FlowRepository Resources for Developers.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.