Skip to content

Commit

Permalink
Update check_posts.R
Browse files Browse the repository at this point in the history
  • Loading branch information
khanspers authored Jul 26, 2023
1 parent a57ed2e commit e98952f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/check_posts.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ for (f in files){

# Check for empty fields and missing files, and check if figure is from a preprint
jpg_check <- file.exists(file.path("figures",sub("\\.yml","\\.jpg",f)))
jpg_check <- file.exists(file.path("figures",sub("\\.yml","\\.jpeg",f))) ##covers both cases
title_check <- nchar(social.nls$article_title) > 5
doi_check <- startsWith(social.nls$doi, "10")
preprint_check <- grepl("/rs.", social.nls$doi, fixed = TRUE)
Expand Down

0 comments on commit e98952f

Please sign in to comment.