Skip to content

Commit 18f6d59

Browse files
committed
update metrics report
1 parent 2521d5a commit 18f6d59

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

metrics_report.Rmd

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,17 @@ if (file.exists("deposits.rds")) {
9898
deposits <- deposits_get(dataverse_host, dataverse_key)
9999
deposits$dvurl <- paste0("http://data.qdr.syr.edu/api/datasets/:persistentId/?persistentId=", deposits$global_id)
100100
101+
institutions <- lapply(deposits$contacts, function(contact_group) {
102+
# For each contact in the group, extract just the affiliation
103+
lapply(contact_group, function(contact) {
104+
contact$affiliation
105+
})
106+
})
107+
108+
101109
# We query individual deposit to get *depositor* affiliation
102110
# This extra API call would be unnecessary to only get contact affiliation
103-
institutions <- lapply(deposits$dvurl, deposit_affiliations, dataverse_key)
111+
# institutions <- lapply(deposits$dvurl, deposit_affiliations, dataverse_key)
104112
105113
print(deposits)
106114
# Run all the depositor affiliations against a regex of institutional members

0 commit comments

Comments
 (0)