Skip to contents

When doi is blank or "local", searches for replication.yml from the working directory upward. When doi is a filesystem path, searches that folder (and parents). When a matching local study is found, registers it via configure_study_folder.

Usage

resolve_doi_input(doi = NULL, location = getwd(), allow_local = TRUE)

Arguments

doi

Character DOI, DOI URL, study-repo path, "local", or blank.

location

Directory to search for a local study (default getwd()).

allow_local

When FALSE, never treat blank/local/. as a working-directory study (used by the registry scope of install_dependencies()).

Value

A list with doi, local_root, and is_local.