darwin-eu-dev / PaRe

PaRe (Package Reviewer) is the successor of the DependencyReviewer package.
https://darwin-eu-dev.github.io/PaRe/
3 stars 3 forks source link

addPareArticle - skip creating article directory if it already exists #41

Closed edward-burn closed 1 year ago

edward-burn commented 1 year ago

Here we try to create an articles directory https://github.com/darwin-eu-dev/PaRe/blob/ba90a57b1b7798bb09f0384b992f902016ddda12/R/addPareArticle.R#L57

But one might already exist, as it does for PatientProfiles which then causes a warning

 PaRe::addPareArticle(repo = repo)
Warning message:
In dir.create(file.path(repo$getPath(), "vignettes", "articles")) :
  'D:\github\patientProfiles\PatientProfiles\vignettes\articles' already exists

@mvankessel-EMC it would be good to add a check whether the articles directory exists and only create it if it doesn´t

mvankessel-EMC commented 1 year ago

Updated: adfd8af