Learn R Programming

servr (version 0.32)

redirect: Create a redirect response

Description

Create a response to redirect to a destination.

Usage

redirect(dest, status = 301L)

Arguments

dest

A destination path.

status

The status code (usually 301 or 302).

Examples

Run this code
servr::redirect("https://www.r-project.org")

Run the code above in your browser using DataLab