-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
review request for EML #80
Comments
Editor checks:
Editor commentsThanks, @cboettig. Looks good, and I am currently seeking reviewers. The output from
Reviewers should take note of the package build process (described at the bottom of the README.md) and review the build scripts rather than line-by-line review of the class definitions (classes.R) and methods (methods.R).
|
First reviewer: @gmbecker |
Second reviewer: @cgries |
Package ReviewPlease check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide
DocumentationThe package includes all the following forms of documentation:
Functionality
Final approval (post-review)
Estimated hours spent reviewing: 6 for initial review and comment writingReview CommentsI do not have experience within the field of application for this package. As such, I will focus in this review on the design and technical aspects of the package while speaking less to it's direct applicability to problems computational ecologists actually face. The package seems generally good, with code (both generated and hand-written) which is well conceived and behaves as intended. I feel that with afew revisions to tighten up some aspects of it, it will be a strong and welcome contribution to ROpenSci core mission to facilitate interaction with open-data sources and formats from within R. S4 design and usagethere are some S4-specific design and stylistic choices which I recommend the authors revisit. ConstructorsGenerally, all classes which any end users are expected to create themselves should have exported constructors, rather than requiring users to call This is doable even when classes (and thus constructors) are automatically generated. I wrote some code that seems to successfully do the individual constructor generation for this package. I'm happy to contribute it, though achieving a positive final review and acceptance is, of course, in no way contingent on that particular code being used. Another note about constructors is that I believe it is stylistically cleaner to map the arguments directly to the slots and to use constructors for the classes of those slots as necessary, recursively, rather than utilizing nested Finally, I do not feel that set_ is an appropriate prefix for constructors, as in the S4 OOP style that suggests than an existing object is being modified by having a component (e.g., slot) of it set. The standard paradigm is to have constructors be functions with names identical to the classes they construct, although that is not mandatory. show methodThe current show method for duplicated classesI understand that the classes are automatically generated, but there seem to be some minor issues with how this is done. My copy of the package has two Also, there are the, e.g., Othereml_getThe eml_get function's return value seems unintuitive to me. When run on the example hf205 EML content for "physical" elements, it returns a list, of length 3, with 3 length-1 ListOfPhysical objects. I don't follow why this is not a single length 3 ListOfPhysical object. class(blah) == "thing"This is not a safe way to test the class of an object, as it will miss/fail for both S3 (vector of classes) and S4 (formal) inheritance. E.g., a tibble will fail a set_coverage data.frame column order requirementThis seems like something that can be checked and enforced programatically rather than relying on good user behavior. The possible columns are fixed and the order is known. Another approach here is to create an S4 object with constructor that formally models the taxonomic hierarchy, rather than relying on a powerful but semantically poor structure like a data.frame. Particularly since from what I can tell it will only ever have one row, making the structure not a great fit anyway. eml constructionIt's not clear that data.frames are the correct model for constructing the components of eml. It seems that an auto-generated codeFiles with autogenerated code should contain a header comment to that effect and telling possible future contributors not to edit the file manually. This should be emitted automatically by the code-generation apparatus. importing packagesThe entire XML packages is imported. I actually feel this is correct in this case (and not terrible generally imho) but it is technically against the ropensci package guidelines. I leave it up to @noamross as the editor to make the final call on this. I recommend it not be an issue for final acceptance. Automated submission to EML repository?This is somewhat conjecture on my part, given the caveat I started these review comments with, but is there a single (or small set of), major repository for EML? If so, does it have an API for submission? If so, bindings to that so that users can submit their newly created EML from within R would magnify the utility of the creation aspect of this package substantially, and should be added either to this package (or via the creating of a sister convenience package). Musing and recommendations for considerationThese are things I feel warrant consideration by the package authors, but should not be taken as firm requirements, and may not even be desirable upon a closer look. I do ask that the authors notes in response to this review address these points and why they did or did not ultimately agree. have the S4 version of the object carry around it's source XMLXML objects are pointers, so duplication/memory will not be an issue. This could get hairy/infeasible if users are modifying the S4 representation of the eml manually and then re-exporting, but I don't get the sense that this is an intended use-pattern. This would make a couple of parts of the code much cleaner/more efficient when they switch between representations. Does everything need to inherit from eml-2.1.1?I can see some benefits to this, but it also complicates things. A lot of the low-level/internal classes would inherit directly from character if not for also implimenting eml-2.1.1. Are those extra slots ever used at the low level, or only, e.g., once per larger document? |
Thank you for the review @gmbecker! Regarding the full package import of XML, I agree that it's fine. There are a few points in our review criteria where we need to clarify requirement v. recommendation, and how we draw the line. I will make a note of this one for our next update. |
Further reviewer comment@cboettig has started a discussion regarding the time-scale of implementing improvements vs putting out a stable release here ropensci/EML#183. In my capacity as a reviewer I feel it is most appropriate that I place my thoughts on this subject here as a secondary part of my review. Package authors, please find my recommendations on this question below. The most important aspect of a stable (read: CRAN) release is that the API is stable upon release for at least the near and preferably the medium term. As such, the most important issues to fix before release are ones that would actually break API compatibility. These are
This is because if you release now without those changes, then release the next release with the changes in a half a year (or whenever), people's existing code will break. This is less acceptable for a CRAN release than it is for a package under heavy development within the ROpenSci incubator. Beyond that, I feel the class checking is the next most important. People in the CRAN sphere are almost sure (in my opinion) to want to pass tbl_df objects to things that take data.frames. Tests to ensure that this works would not be out-of-place, and they should pass before CRAN release. The other changes, while more important from a package design improvement perspective, can probably wait if they must, because they will likely be either backwards compatible or large enough that they warrant a new major version of the software. EDIT: @noamross if as the editor you feel this post oversteps my role as a reviewer I can remove this post and make my comments in the linked issue (or not at all if it inappropriate for a reviewer to weigh in on the response to his comments in this manner). |
Package Review
Documentation
Functionality
Final approval (post-review)
Estimated hours spent reviewing: Review Comments |
Thanks for the review @cgries! |
Update: An initial version of the package is now on CRAN, after discussions with the |
@cgries do you know an estimate for your time for reviewing in hours? |
It having been some time since reviews here, I just want to check in with @gmbecker and @cgries that they would still be able and interested in doing follow-up for this review should the EML team submit it for their milestone at the end of the year. We'd be glad to have you, but if you can't we'll assign new reviewers from scratch (who can draw on your reviews as needed). |
Sure, I’d be happy to, as long as it is a bit later in the fall.
Corinna
From: Noam Ross [mailto:notifications@github.com]
Sent: Tuesday, August 15, 2017 5:10 PM
To: ropensci/onboarding
Cc: Corinna Gries; Mention
Subject: Re: [ropensci/onboarding] review request for EML (#80)
It having been some time since reviews here, I just want to check in with @gmbecker<https://github.com/gmbecker> and @cgries<https://github.com/cgries> that they would still be able and interested in doing follow-up for this review should the EML team submit it for their milestone at the end of the year. We'd be glad to have you, but if you can't we'll assign new reviewers from scratch (who can draw on your reviews as needed).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#80 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AGOVzjCPyAtlzsnZwzShvxMjUeSvb1gvks5sYhctgaJpZM4KXiQy>.
|
Summary
Parse and serialize Ecological Metadata Language ('EML') files into S4 objects.
https://github.com/ropensci/EML
Researchers publishing data who want to use a formal, machine-readable metadata standard to describe their data files, and/or researchers consuming data published with EML metadata (e.g. NEON or LTER data.)
Not that I'm aware of.
Requirements
Confirm each of the following by checking the box. This package:
Publication options
paper.md
with a high-level description in the package root or ininst/
.Detail
R CMD check
(ordevtools::check()
) succeed? Paste and describe any errors or warnings:The text was updated successfully, but these errors were encountered: