| BiodbUrl {biodb} | R Documentation |
Class URL.
Class URL.
This class represents a URL object that can be used in requests.
new()Constructor.
BiodbUrl$new(url = character(), params = character())
urlThe URL to access, as a character vector.
paramsThe list of parameters to append to this URL.
A new instance.
getDomain()Gets the domain.
BiodbUrl$getDomain()
None.
setUrl()Sets the base URL string.
BiodbUrl$setUrl(url)
urlThe base URL string.
None.
setParam()Sets a parameter.
BiodbUrl$setParam(key, value)
keyThe parameter name.
valueThe value of the parameter.
None.
print()Displays information about this instance.
BiodbUrl$print()
None.
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()