Skip to content

Commit

Permalink
Fix R scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Dec 11, 2024
1 parent 50ce078 commit 1a9aaf5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catalogues/kbr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ TYPE_PARAMS="${TYPE_PARAMS} --ignorableFields 590,591,592,593,594,595,596,659,90
# TYPE_PARAMS="${TYPE_PARAMS} --solrForScoresUrl http://localhost:8983/solr/kbr_scores"
TYPE_PARAMS="${TYPE_PARAMS} --indexWithTokenizedField"
TYPE_PARAMS="${TYPE_PARAMS} --indexFieldCounts"
MASK=kbr-*.gz
MASK=${MASK:-kbr-*.gz}

. ./common-script
2 changes: 1 addition & 1 deletion scripts/classifications/classifications-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ count <- df %>%
arrange(desc(recordcount))

df2 <- count %>%
left_join(types)
left_join(types, by = join_by(scheme))

prefix <- 'classifications-by-type'
csv <- sprintf("%s/%s.csv", output_dir, prefix)
Expand Down
2 changes: 1 addition & 1 deletion scripts/marc-history/marc-history-grouped.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ plot <- filtered %>%

img_dir <- sprintf('%s/img', output_dir)
if (!dir.exists(img_dir)) {
if (file.exists(img_dir) {
if (file.exists(img_dir)) {
file.remove(img_dir)
}
dir.create(img_dir)
Expand Down
2 changes: 1 addition & 1 deletion scripts/pareto/frequency-range-per-types.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ create_all_pictures <- function(dir, field, file_name) {
print(paste('saving to directory ', img_dir))

if (!dir.exists(img_dir)) {
if (file.exists(img_dir) {
if (file.exists(img_dir)) {
file.remove(img_dir)
}
print(paste('creating directory ', img_dir))
Expand Down

0 comments on commit 1a9aaf5

Please sign in to comment.