aps.urlEncode: aps.urlEncode

Description Usage Arguments Details Value Author(s) Examples

View source: R/urlEncode.R

Description

urlEncode all the strings in a character vector

Usage

1

Arguments

vec

Vector to encode. Will be coerced to character.

Details

The urlEncode function supplied by RApache has a few behaviors I don't expect. First, it requires only character arguments, so urlEncode(1) throws an exception. Second, it dies on the empty string.

This function is a wrapper for RApache's urlEncode that handles all these cases. It might later be replaced with another implementation, but the interface will stay. (The "aps" stands for AnalysisPageServer.)

Value

charvec of same length, with encoded strings

Author(s)

Brad Friedman - Regular

Examples

1
2
3

AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.