unige-geohealth / inAccessMod

GNU General Public License v3.0
8 stars 5 forks source link

JOSS review: example, tests, minor issues #4

Closed ConnorDonegan closed 11 months ago

ConnorDonegan commented 1 year ago

I'm having some trouble running the vignette code and want to raise some suggestions. I write these in the spirit of the JOSS review process being interactive, and giving feedback while completing the review rather than only after. Two items from the review criteria that require attention are

Getting to the download_boundaries function in the tutorial I get:

mainPath <- getwd()
initiate_project(mainPath) # 167; 2
country <- "Switzerland"     
> download_boundaries(mainPath,
+                     country,
+                     adminLevel = 2,
+                     type = "gbAuthoritative",
+                     alwaysDownload = TRUE)
+ Requested data not available. Searching for available data, please wait...
              Type Level Availability
1           gbOpen     0          YES
2           gbOpen     1          YES
3           gbOpen     2          YES
4           gbOpen     3          YES
5   gbHumanitarian     0           NO
6   gbHumanitarian     1           NO
7   gbHumanitarian     2           NO
8   gbHumanitarian     3           NO
9  gbAuthoritative     0           NO
10 gbAuthoritative     1           NO
11 gbAuthoritative     2           NO
12 gbAuthoritative     3           NO
Run the download_boundaries function again with valid parameters.

I understand that it might be advantageous to have a vignette with code that doesn't need to run because the external data sources you're querying can change and are outside of the control of the project. However, I think new users (including me) would really benefit from having a single example that moves from initiate_project to opening the data in AccessMod, particularly a simple one. Something of that nature will ne needed to meet the JOSS expectation for "examples of how to use the software."

I like that the tutorial has some thorough discussion of each function, but it would be helpful if example code were accessible from the help pages, e.g., ?download_boundaries. Currently the help pages don't have any example code. Having example code will also provide some protection against errors getting introduced with revisions to the code.

I see that the Processed input compiling section is related to this issue of moving between inAccessMod and AccessMod, but it doesn't really stand out for that purpose (that is, a user may not be able to find it very quickly if that's what they were looking for) and I think new users would appreciate a bit more support getting to that point.

Some minor items I'd like to suggest:

https://github.com/openjournals/joss-reviews/issues/5879

ptimoner commented 1 year ago

Dear @ConnorDonegan ,

Thanks a lot for your time in reviewing my package and for all your suggestions. I followed all of them as I believed they could really improve the support to the user.

I hope these changes meet your expectations, and the package is now more user-friendly.

Thank you again for your valuable insights,

Best regards,

Pablo

https://github.com/openjournals/joss-reviews/issues/5879

ConnorDonegan commented 1 year ago

Thanks Pablo, I look forward to working through the new material (within the coming week or two).

ConnorDonegan commented 11 months ago

I was able to move through the tutorial, download landcover, roads, facilities, boundaries, and population raster, and open them all up in QGIS to verify that the files are what I would expect. I think the changes to the tutorial go a long way towards helping users get started. I'm going to close this one then and continue the discussion on the main review page https://github.com/openjournals/joss-reviews/issues/5879

Thanks