Skip to content

Commit 0f25e9f

Browse files
authored
Add infile parameter to make_collection_table function
Updated the make_collection_table function to accept an input file parameter for better flexibility.
1 parent 4dda5c0 commit 0f25e9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/render_collection.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
library(dplyr)
22
library(stringr)
33

4-
make_collection_table <- function(make_gsdcn_only_table = FALSE, exclude_gdscn_from_table = FALSE) {
4+
make_collection_table <- function(infile = "resources/collection.tsv", make_gsdcn_only_table = FALSE, exclude_gdscn_from_table = FALSE) {
55
# Read in repos found by GHA
66
df <- tryCatch(
77
# Check for the file created by GHA
88
expr = {
99
df <-
10-
readr::read_tsv("resources/collection.tsv")
10+
readr::read_tsv(infile)
1111

1212
# Do some cleaning of strings
1313
df$name <-

0 commit comments

Comments
 (0)