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
Implementation of OPTRAM algorithm to derive soil moisture from remote sensing imagery #612
Comments
Thanks for submitting to rOpenSci, our editors and @ropensci-review-bot will reply soon. Type |
Error (500). The editorcheck service is currently unavailable |
@ropensci-review-bot check package |
Thanks, about to send the query. |
Error (500). The editorcheck service is currently unavailable |
@micha-silver thanks for your submission! We'll fix this glitch in our system next week. |
Hi @maelle : It's good to hear from you. I'll look forward to getting the review underway next week. |
Thanks @micha-silver for your submission. As Maëlle has noted our automatic package checker has a glitch, one that we think is a GitLab-related edge case. (We have fewer - totally fine! - submissions from GitLab so the system has had less stress-testing against it). In the meantime, I've determined that your package is in-scope. From an initial manual check of the repository I note a few important things that that will be required before proceeding to assign an editor and reviewers. It may be worth moving ahead on these while we get the automatic checks going:
|
@ropensci-review-bot check package |
Thanks, about to send the query. |
🚀 Editor check started 👋 |
Checks for rOPTRAM (v0.0.1.000)git hash: dd810f2f
Important: All failing checks above must be addressed prior to proceeding Package License: GPL (>= 3) + file LICENSE 1. Package DependenciesDetails of Package Dependency Usage (click to open)
The table below tallies all function calls to all packages ('ncalls'), both internal (r-base + recommended, along with the package itself), and external (imported and suggested packages). 'NA' values indicate packages to which no identified calls to R functions could be found. Note that these results are generated by an automated code-tagging system which may not be entirely accurate.
Click below for tallies of functions used in each package. Locations of each call within this package may be generated locally by running 's <- pkgstats::pkgstats(<path/to/repo>)', and examining the 'external_calls' table. basefile.path (16), lapply (15), c (13), basename (7), paste (7), strsplit (6), unlist (6), data.frame (5), list.files (5), as.data.frame (4), dir (4), nrow (4), grepl (3), sample (3), as.Date (2), do.call (2), length (2), rbind (2), split (2), t (2), as.character (1), dirname (1), gsub (1), log2 (1), max (1), min (1), package_version (1), paste0 (1), path.expand (1), row.names (1), suppressWarnings (1), Sys.which (1), system.file (1), T (1), try (1) terrarast (10), as.data.frame (6), writeRaster (4), ext (3), crs (1), project (1) rOPTRAMcalculate_str (6), calculate_vi (5), aoi_to_name (3), check_scihub_access (2), optram_wetdry_coefficients (2), check_aoi (1), optram_calculate_str (1) xml2read_xml (5), xml_find_first (5), xml_text (5), xml_contents (1), xml_find_all (1) statslm (3), quantile (3), offset (1), step (1) utilsdata (3), vi (3), packageVersion (1) dplyrfull_join (3) datasetsiris (1) sen2rcheck_gcloud (1) sfst_read (1) NOTE: Some imported packages appear to have no associated function calls; please ensure with author that these 'Imports' are listed appropriately. 2. Statistical PropertiesThis package features some noteworthy statistical properties which may need to be clarified by a handling editor prior to progressing. Details of statistical properties (click to open)
The package has:
Statistical properties of package structure as distributional percentiles in relation to all current CRAN packages
All parameters are explained as tooltips in the locally-rendered HTML version of this report generated by the The final measure (
2a. Network visualisationClick to see the interactive network visualisation of calls between objects in package 3.
|
message | number of times |
---|---|
Avoid 1:length(...) expressions, use seq_len. | 2 |
Avoid library() and require() calls in packages | 4 |
Lines should not be more than 80 characters. | 59 |
Use <-, not =, for assignment. | 2 |
Package Versions
package | version |
---|---|
pkgstats | 0.1.3.9 |
pkgcheck | 0.1.2.10 |
Editor-in-Chief Instructions:
Processing may not proceed until the items marked with ✖️ have been resolved.
Thanks:
I've written and added an appropriate vignette.
Added CONTRIBUTING.md (in
Yes, I have only one CI so far. I'll start preparing tests for additional releases and OS. |
Thanks, @micha-silver. Now that we have automated checks, I also see that the repo doesn't show the test coverage (though you may be measuring this locally as I see you have a .covrignore file). Since reviewers may be less familiar with navigation in GitLab, please put badges in your readme to point us to the CI build logs and coverage outputs once those are set up. |
Correct, I'm running My coverage is not good, (about 48%) and I'd like some advice here: I have three main functions that pull down multiple Sentinel 2 or Landsat imagery tiles, over a time span.
Even if I do a test that limits the time span to one day, it would be > 1GB download for each of these functions. I think that such a big download should not be done in a test. How can I work around this? |
This is a common challenge we see. There are several complementary strategies one can take:
|
@noamross : I'm considering migrating the rOPTRAM repo from gitlab to github. I think I'll be able to configure the CI tests more easily on github (lots more examples...). And since most ROpenSci projects are on github, the review process might also be smoother. Shall I go ahead with this? Anything I need to be aware of?? Regarding your explanation above about testing functions with large downloads, I'd like to go with the 4th option, setting a condition, and skipping those tests (with explanation in CONTRIBUTING). Thanks, Micha |
@micha-silver No problem for us if you move to GitHub, though we are happy to do the process either way. We might have to make a tweak so the bot knows that the repository is in a new location, so let us know when you switch. |
Hi:
(TODO: Still needs to be improved. I've added one addition testthat function to test downloading in the
Here are links to the results: Not sure how long these artifacts are kept on rhub. But the full artifact on gitlab is available: What's next? |
Following up:
The explanation: The |
Hi @micha-silver, thanks for moving a ahead on this. It's good you got to 75% coverage without the |
@noamross I appreciate your encouraging words. Two comments
|
It should be fine to present the package in its current state. Let me re-run checks. |
@ropensci-review-bot check package |
Thanks, about to send the query. |
@ropensci-review-bot set due date for @obrl-soil to 2024-03-25 |
Review due date for @obrl-soil is now 25-March-2024 |
Hi @adamhsparks |
Hi @adamhsparks |
Hey - sorry but the rewrite pushed this from a quiet time for me to a very busy one! I can get to this over the long weekend. |
Hi @micha-silver , |
@harryeslick |
@micha-silver , here is my review, I still need to read up on the 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:
some minor suggestions: OAuth link missingRunning the main wrapper function
I would i like to have a link here to the vignette where setting up OAuth is demonstrated. OAuth example suggestionThis is a bit of a stylistic preference, and keep in mind I don't fully understand the workflow, so I could be totally wrong here... Saving credentials section seems a little long winded and unnecessary. I think it could probably be replaced with just
the convenience of having a
Missing function in docsmain page references function Is this meant to be ALSO:
I found a few minor bugs here:
Functionality
Estimated hours spent reviewing: 6
Other related issues logged at GitLab
|
@harryeslick |
Hey, sorry this took so long! Not sure I caught everything but I think I've covered off on the main issues. Tl;dr, good job overall but I think the function design is trying to do a little too much for the end user in places. Package Review
DocumentationThe package includes all the following forms of documentation:
Functionality
Estimated hours spent reviewing: 8
Review Comments
General
Vignettes
Documentation
see https://roxygen2.r-lib.org/articles/formatting.html . For specific functions,
Examples
to prompt the user directly.
Tests
|
Hi @obrl-soil |
@adamhsparks , @obrl-soil , @harryeslick :
I chose to allow users to enter a file name for the area of interest, instead of requiring them to read their spatial file as an I'd like to ask your opinions if it's reasonable to expect user's to understand the {sf} package well enough to read in their Thanks, |
I agree with @obrl-soil on this. Too many edge cases. Users can be expected to have a modest understanding of {sf} to use a package that leverages it. Simplify your package. Future you will thank you. In the past I added “support” for operations outside the focus of my package, in time I simplified following the UNIX philosophy. Do one thing. Do it well. No one ever complained about the “loss” of functionality as it was already in R with other packages. |
I forgot to do this. |
@ropensci-review-bot submit review #612 (comment) time 6 |
Logged review for harryeslick (hours: 6) |
@ropensci-review-bot submit review #612 (comment) time 8 |
Logged review for obrl-soil (hours: 8) |
Hello all:
Looking forward to any additional suggestions. |
Also... I'm looking for advice on one issue:
|
@ropensci-review-bot submit response #612 (comment) |
I'm sorry @adamhsparks, I'm afraid I can't do that. That's something only author1 and author-others are allowed to do. |
Thanks, @micha-silver, @obrl-soil and @harryeslick, can you please check if you are satisfied with the changes and if you have additional comments? |
This is how I would handle the example. Do the data requirements expand beyond the need to download the data? That is, once the data is downloaded, is the pathway for the model the same and is therefore tested with the normal tests? |
Yes, that's exactly what happens. |
I'd not worry about tests for this then. |
Submitting Author Name: Micha Silver
Submitting Author Github Handle: @micha-silver
Other Package Authors Github handles: (comma separated, delete if none) @github_handle1, @github_handle2
Repository: https://gitlab.com/rsl-bidr/roptram
Version submitted: 0.0.1.000
Submission type: Standard
Editor: @adamhsparks
Reviewers: @harryeslick, @obrl-soil
Archive: TBD
Version accepted: TBD
Language: en
Scope
Please indicate which category or categories from our package fit policies this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.):
Explain how and why the package falls under these categories (briefly, 1-2 sentences):
This package includes acquiring satellite imagery, and preparing spatially explicit soil moisture raster grids.
Who is the target audience and what are scientific applications of this package?
Researchers in ecology, agriculture, sustainability. Agricultural management of grazing lands, reforestration.
Are there other R packages that accomplish the same thing? If so, how does yours differ or meet our criteria for best-in-category?
No
(If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
Yes
If you made a pre-submission inquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted.
Explain reasons for any
pkgcheck
items which your package is unable to pass.Technical checks
Confirm each of the following by checking the box.
This package:
Publication options
Do you intend for this package to go on CRAN?
Do you intend for this package to go on Bioconductor?
Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:
MEE Options
Code of conduct
The text was updated successfully, but these errors were encountered: