Skip to contents

This function facilitates the association of a specific Google Drive folder with a project by adding a unique identifier to the project's DESCRIPTION file. The user is prompted to navigate to the Google Drive website, select or create the desired folder for the project, and then provide its URL. The function extracts the necessary information from the URL and updates the cloudfs.drive field in the DESCRIPTION file accordingly.

Usage

cloud_drive_attach(project = ".")

Arguments

project

Character. Path to a project. By default it is current working directory.

Value

This function does not return a meaningful value. Its primary purpose is the side effect of updating the project's DESCRIPTION file with the associated Google Drive folder identifier.

Examples

if (FALSE) { # interactive()
cloud_drive_attach()
}