IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 103 forks source link

Script to update e-picsa from R-Instat #9289

Open rdstern opened 16 hours ago

rdstern commented 16 hours ago

@lilyclements I think this could be a very simple update, to what I understand is your current R script to update the google bucket, from Climsoft.

The reason I hope it is a simple "tweak" to your current script is that I suggest it should be a 2-step process as follows:

a) Step 1 is the import all the data for the update, into R-Instat. This could be for Zambia, or it could be province by Province, if there are so many stations that it is a bit scary for the ZMD staff to do it all in 1 step. Or it could even be for a few (new) stations. b) Then they run your updating script.

I assume it is working already - from Climsoft - so all you need to do, is adapt it to run from data in R-Instat?

Neat, eh? If so, then this builds on all the changes you have been making in R-Instat recently. So that justifies that they were made, at least partly for e-picsa. That is to be able to import packages from github easily, and also the specific r-package for e-picsa. Could you then add the new code into that package?

This would then all fit very sweetly into our advanced workshop, which starts 9 December. We are teaching about using scripts also for the out-filling process. So perfect that they need to be able to run a script for e-picsa updates!

And it fits perfectly into my general plan for R-Instat, namely that we have demolished the steep learning curve, for a large group of potential users, who find the usual "learn R first" approach daunting. And it shows that (for them), using scripts is pretty easy, and much simpler than starting R by writing them. This facility would be an excellent example!

And we can test it all next week! It is one important step into making e-picsa a smooth process by the end of this contract.

jkmusyoka commented 10 hours ago

I support. This is a sensible way of making it easy for ZMD. @lilyclements let me know when you have done the "tweak" and I will do the testing

lilyclements commented 5 hours ago

@rdstern @jkmusyoka happy to assist. However, I am unsure where you'd like me to make this tweak. You refer to a "current script", what or where is this current script?

You say "Step 1 is the import all the data for the update, into R-Instat." My understanding was that currently we have step 1 as import from climsoft into R-Instat. What data are you referring to here / where do you want us to import it from to import into R-Instat? (Perhaps on reflection you mean to read into R-Instat the data that's currently in the google buckets)

rdstern commented 1 hour ago

@lilyclements I thought you had an R script from before, to update the data in google buckets if another year has passed, and so you just wanted the new year included, and the stations and events were all the same as last year?

That's the one - if I'm not imagining things, that we suggested could be done from within R-Instat in stead?