Skip to contents

Opens an external link (e.g., a dashboard, shared folder, or Notion page) or a Google Drive document previously attached to a Project object.

Usage

dl_project_open_link(name, project = dl_get_project(), env = "prod")

Arguments

name

Character. The name of the link or document to open, e.g. "dashboard", "proposal", or "survey".

project

Character. The project ID or path to the project to open the link from. This will be validated with dl_check_project() and loaded using dl_project_read().

env

Datalake environment ("prod" or "test"). Default "prod".

Value

Invisibly returns the loaded Project object.

Details

The function first looks for the link in proj$links[[name]]. If not found, it then searches proj$documents[[name]] and uses the url stored in the document's metadata.

Examples

if (FALSE) { # \dontrun{
dl_project_open_link("dashboard", project = "genie")
dl_project_open_link("survey", project = "2025-08-01_fever")
} # }