whichRepo: whichRepo

View source: R/whichRepo.R

whichRepoR Documentation

whichRepo

Description

Deprecated! Get the name of the GitHub repo associated with a project. No error catching at the moment.

Usage

whichRepo(WD, fullPath = FALSE)

Arguments

WD

working directory for the lesson project folder for which you want to find out the associated GitHub repository

fullPath

do you want to export the full git path, or just the repo name? Default=F (just name)

Details

This assumes you have Google Drive for Desktop set up, permissions to access lesson folder, and git installed and authenticated in Rstudio.

Value

Either a warning or the name of the github repository connected to the current Rstudio project (extracted from rstudioapi::getActiveProject() and a call to ⁠git remote -v⁠)


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.