require(plumber)
pr() |>
pr_filter('static',
cran_static_path_handler(repo_dir, path_prefix = 'cran'))
pr() |>
pr_filter('redirect',
cran_static_redirect_handler("http://my.local.cran:80/cran"))
Run the code above in your browser using DataLab