BiodbUrl | R Documentation |
Class URL.
Class URL.
This class represents a URL object that can be used in requests.
new()
Initializer.
BiodbUrl$new(url = character(), params = character(), chompExtraSlashes = TRUE)
url
The URL to access, as a character vector.
params
The list of parameters to append to this URL.
chompExtraSlashes
If set to TRUE, then slashes at the end and the beginning of each element of the url vector parameter will be removed before proper concatenation.
Nothing.
getDomain()
Gets the domain.
BiodbUrl$getDomain()
The domain.
setUrl()
Sets the base URL string.
BiodbUrl$setUrl(url)
url
The base URL string.
Nothing.
setParam()
Sets a parameter.
BiodbUrl$setParam(key, value)
key
The parameter name.
value
The value of the parameter.
Nothing.
print()
Displays information about this instance.
BiodbUrl$print()
self as invisible.
toString()
Gets the URL as a string representation.
BiodbUrl$toString(encode = TRUE)
encode
If set to TRUE, then encodes the URL.
The URL as a string, with all parameters and values set.
clone()
The objects of this class are cloneable with this method.
BiodbUrl$clone(deep = FALSE)
deep
Whether to make a deep clone.
BiodbRequestScheduler
, BiodbRequest
.
# Create a URL object u <- c("https://www.uniprot.org", "uniprot") p <- c(query="reviewed:yes+AND+organism:9606", columns='id,entry name,protein names', format="tab") url <- BiodbUrl$new(url=u, params=p) url$toString()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.