SanitizeURL: Remove illegal URL characters

Description Usage Arguments Details Value Author(s) Examples

View source: R/GetRealTimeGrib.R

Description

An internal routine for replacing illegal URL character in level and variable names

Usage

1
SanitizeURL(bad.strs)

Arguments

bad.str

A vector of strings destined for concatenation into a URL. They may have characters that are not allowed in URLs.

Details

This is an internal function that helps make sure variable and level names create valid URLS for downloading model data.

Value

good.str

A vector of strings with illegal URL characters replaced by their percent encoding

Author(s)

Daniel C. Bowman [email protected]

Examples

1
2
3
bad.strs <- c("I am full of ^ill=/\\egal characters")
good.str <- SanitizeURL(bad.strs)
print(good.str[1])

rNOMADS documentation built on Nov. 17, 2017, 7:13 a.m.