pasteUrl | R Documentation |
Concatenate strings to form a URL
pasteUrl(..., protocol = c("none", "https", "http", "ftp", "rsync", "s3"))
... |
Character strings.
Intentionally does not support recycling here, unlike base |
protocol |
|
Encoding is applied automatically via utils::URLencode
.
character(1)
.
URL path.
Updated 2023-09-19.
## HTTPS.
x <- pasteUrl(
"r.acidgenomics.com",
"packages",
"acidbase",
protocol = "https"
)
print(x)
## FTP.
x <- pasteUrl(
"ftp.ensembl.org",
"pub",
"release-94",
"gtf",
"homo_sapiens",
"Homo_sapiens.GRCh38.94.gtf.gz",
protocol = "ftp"
)
print(x)
## Automatic encoding support.
x <- pasteUrl(
"rest.ensembl.org",
"info",
"assembly",
"Homo sapiens",
protocol = "https"
)
print(x)
## Character vector support.
vec <- c("r.acidgenomics.com", "packages", "acidbase")
x <- pasteUrl(vec, protocol = "https")
print(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.