Unlimited learning, half price | 50% off
Get 50% off unlimited learning

shiny.router (version 0.1.1)

parse_url_path: Parse url and build GET parameters list

Description

Extract info about url path and parameters that follow ? sign.

Usage

parse_url_path(url_path)

Arguments

url_path

character with link url

Value

list containing two objects:

  • path

  • query, a list

Details

parse_url_path allows parsing paramaters lists from url. See more in examples.

Examples

Run this code
# NOT RUN {
parse_url_path("?a=1&b=foo")
parse_url_path("?a=1&b[1]=foo&b[2]=bar/#!/")
parse_url_path("?a=1&b[1]=foo&b[2]=bar/#!/other_page")
parse_url_path("www.foo.bar/#!/other_page")
parse_url_path("www.foo.bar?a=1&b[1]=foo&b[2]=bar/#!/other")
# }

Run the code above in your browser using DataLab