diff --git a/R/utils.R b/R/utils.R index 6769a0c5e..502691a91 100644 --- a/R/utils.R +++ b/R/utils.R @@ -521,8 +521,8 @@ installExprFunction <- function(expr, name, eval.env = parent.frame(2), #' contains pairs of square brackets `[]`. For example, the query #' \samp{a[i1][j1]=x&b[i1][j1]=y&b[i2][j1]=z} will be parsed as `list(a = #' list(i1 = list(j1 = 'x')), b = list(i1 = list(j1 = 'y'), i2 = list(j1 = -#' 'z')))` when `nested = TRUE`, and `list(`a[i1][j1]` = 'x', -#' `b[i1][j1]` = 'y', `b[i2][j1]` = 'z')` when `nested = FALSE`. +#' 'z')))` when `nested = TRUE`, and \code{list(`a[i1][j1]` = 'x', +#' `b[i1][j1]` = 'y', `b[i2][j1]` = 'z')} when `nested = FALSE`. #' @export #' @examples #' parseQueryString("?foo=1&bar=b%20a%20r") diff --git a/man/parseQueryString.Rd b/man/parseQueryString.Rd index 7539387e3..7074fb6d4 100644 --- a/man/parseQueryString.Rd +++ b/man/parseQueryString.Rd @@ -11,9 +11,7 @@ parseQueryString(str, nested = FALSE) \item{nested}{Whether to parse the query string of as a nested list when it contains pairs of square brackets \code{[]}. For example, the query -\samp{a[i1][j1]=x&b[i1][j1]=y&b[i2][j1]=z} will be parsed as \code{list(a = - list(i1 = list(j1 = 'x')), b = list(i1 = list(j1 = 'y'), i2 = list(j1 = - 'z')))} when \code{nested = TRUE}, and \code{list(`a[i1][j1]` = 'x', +\samp{a[i1][j1]=x&b[i1][j1]=y&b[i2][j1]=z} will be parsed as \code{list(a = list(i1 = list(j1 = 'x')), b = list(i1 = list(j1 = 'y'), i2 = list(j1 = 'z')))} when \code{nested = TRUE}, and \code{list(`a[i1][j1]` = 'x', `b[i1][j1]` = 'y', `b[i2][j1]` = 'z')} when \code{nested = FALSE}.} } \description{