getgws | R Documentation |
This set of functions allows the configuration of the remote URL, so the R client package can be used with a different instance of the GPlates web service, including a local implementation (served on localhost).
The function will use the http get method to access the version number of the GPlates Web Service.
getgws()
setgws(url = "", check = TRUE, reset = FALSE, silent = FALSE)
checkgws(silent = FALSE)
url |
( |
check |
( |
reset |
( |
silent |
Logical flag indicating wheth the output should be silent? |
The getws
function returns the current url of the GPLates Web Service (defaults to: https://gws.gplates.org/
).
The setws
function allows the setting of GPLates Web Service URL.
getws
returns a single character string with the URL of the GWS.
Invisible return, either FALSE, or a character string with the version number.
# Access currently set remote URL.
getgws()
# In case you have the GWS running on localhost (default port 18000):
# At time of writing this, the local instance does not return version, checking
# does not work!
setgws("http://localhost:18000/", check=FALSE)
# To reset factory defaults
setgws(reset=TRUE, check=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.