Skip to contents

Opens browser page for a given project object.

Usage

get_project_url(project, link_type = "home", open_browser = TRUE)

get_record_url(project, record, page, instance, open_browser = TRUE)

Arguments

project

A validated project object containing REDCap project data and settings. Generated using project <- load_project("PROJ") or setup_project()

choose one of "base", "home", "record_home", "records_dashboard", "api", "api_playground", "codebook", "user_rights", "setup", "logging", "designer", "dictionary", "data_quality", "identifiers"

open_browser

logical for launching the link in internet browser

record

REDCap record id or study id etc, any column names that match project$metadata$id_col

page

REDCap page for the record. Must be one of project$metadata$forms$form_name

instance

REDCap instance if it's a repeating instrument

Value

internet link

Details

Uses utils::browseURL() to open the specified REDCap page. In order for the function to work you must have ran project <- sync_project(project) successfully at least once. If the link brings you to a page that doesn't work check the URL. It's possible your institution may have changed redcap versions, which is part of the URL. In that case run project <- sync_project(project) again. You may have to be signed into REDCap for it to work properly. When in doubt, just seek out the page by navigating on your own in REDCap. Report issues if you can.