8000 update to EML 2.2.0 by sannegovaert · Pull Request #161 · inbo/camtrapdp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

update to EML 2.2.0 #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

update to EML 2.2.0 #161

wants to merge 2 commits into from

Conversation

sannegovaert
Copy link
Member

The IPT (v 3.1.0) updated from EML 2.1.1 to EML 2.2.0, solving ropensci/EML#342. We update our scripts accordingly.

@sannegovaert sannegovaert requested a review from peterdesmet April 7, 2025 11:47
Copy link
codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ee035ac) to head (78b189d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #161   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           27        27           
  Lines         1204      1205    +1     
=========================================
+ Hits          1204      1205    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -76,19 +76,20 @@ write_eml <- function(x, directory, derived_paragraph = TRUE) {
eml$dataset$title <- x$title

# Set abstract, with optional extra paragraph
para <- x$description
para <- x$description %>%
# Add <p></p> tags to each paragraph
Copy link
Member

Choose a reason for hiding this comment

The A1BE reason will be displayed to describe this comment to others. Learn more.

You are not adding

to each paragraph here, but rather wrapping the entire description as a single paragraph.

x$description can contain empty lines, so I suggest you use what you used in bird-tracking here:

paragraphs <- unlist(strsplit(description_full, "<p>|</p>|\n"))
paragraphs <- paragraphs[paragraphs != ""]

@peterdesmet peterdesmet added this to the Version 0.4.0 milestone May 20, 2025
@peterdesmet peterdesmet self-requested a review May 26, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0