Closed jeanetteclark closed 4 years ago
I've been slowly chipping away at this. Two things came up today:
using the c()
function to group EML elements created by helpers (like eml_creator
, or even EML::set_physical
) mangles them, need to make sure that this is shown clearly in the docs where needed
the stopifnot
tests used when an argument is expected to be a certain type of EML element (such as a list of personnel
) don't work anymore because class(...)
returns list for everything. Need to think about which of these tests are necessary and how to write them, probably as mini-validation functions
done with all of the functions, and have done some preliminary testing. so far so good! tasks remaining:
[x] review documentation to make sure dontrun
examples would run
[x] identify places where stopifnot
tests should be implemented
[x] fix warnings and notes after checking the package with devtools
The EML update moving to S3 objects is coming, and while it does maintain backwards compatibility with the old version, I'd like to see us refactor our code to stay up to date. We'll need to update all of the functions that rely on
eml
. Here is a running list (from eml.R, there may be others). We will also need to update the tests.I created a new branch called
eml2_refactor
where we can push these changes