| 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)
urlThe URL to access, as a character vector.
paramsThe list of parameters to append to this URL.
chompExtraSlashesIf 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)
urlThe base URL string.
Nothing.
setParam()Sets a parameter.
BiodbUrl$setParam(key, value)
keyThe parameter name.
valueThe 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)
encodeIf 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)
deepWhether 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.