Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: wddsWizard
Title: Data Wizard for a Minimal Wildlife Disease Data Standard
Version: 0.2.1
Version: 0.2.2
Authors@R:
person("Collin",
"Schwantes",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# wddsWizard 0.2.2

- fix issue with package variables in r-universe builds
- add methodology to openalex metadata extract

# wddsWizard 0.2.1

- fix issue with regex in prep_project_metadata
Expand Down
7 changes: 6 additions & 1 deletion R/extract_metadata_from_doi.R
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ extract_metadata_oa<-function(doi){
description_df <- data.frame(Description = "FILL ME IN","Description Type" = "abstract",check.names = FALSE) |>
expand_tidy_dfs(group_prefix = "Descriptions")

# methodology

methodology_df <- data.frame(Group = c("Methodology",""),Variable = c("Event Based","Archival"), Value = FALSE)

# fundingReferences

"Funder Name NSF
Expand Down Expand Up @@ -182,7 +186,8 @@ Award Title Verena Fellow-in-Residence Award"

# rbind data frames

out <- rbind(creator_df_expanded,
out <- rbind(methodology_df,
creator_df_expanded,
title_df_expanded,
publicationYear_df,
language_df,
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-create_schema_docs.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test_that("create_schema_docs works", {
expect_no_failure(create_schema_docs())
file_path <- wdds_json(version = "latest",file = "wdds_schema.json")
expect_no_failure(create_schema_docs(schema_path = file_path))
})


test_that("create_schema_docs fails with non character", {
expect_error(create_schema_docs(schema_path = 1))
})
Expand Down