Replies: 3 comments 3 replies
-
I was in discussion with @lloyddewit who assumed a different way of working, once the packages are installed. I think "his" method would be that changes (or additions) to the functions in the R packages would always be done within the test version of that package. I assume issues would still be given in the same github site as now. I know that most R packages would have their own github version of the package, so we might too. And the test version of R-Instat might make use of those github versions. Then issues could lead to pull requests in one of those sites as well as the main R-Instat site. This can still accommodate just one or two staff having rights to updating the packages |
Beta Was this translation helpful? Give feedback.
-
@rdstern thanks, yes I have a view (of course!) but it's not my decision. @ChrisMarsh82 and others have a better understanding of the current context and should be the ones to decide. |
Beta Was this translation helpful? Give feedback.
-
@N-thony @lilyclements Thanks for the comments.
Yes, that's exactly how I understand it as well. I also liked your 'updating R code' document.
Sounds reasonable. I assume that any R-Instat PRs that require R changes between major versions will use a minor (non-CRAN) version(s) of the R packages. |
Beta Was this translation helpful? Give feedback.
-
The R-Instat developers have produced many R functions. They used to be within the R-Instat code. Now @lilyclements has collected most of them into 4 main R-Instat R packages, namely databook, instatCalculations, instatExtras and instatClimatic.
So, now the R functions are called by the R-Instat code. How should developers now work. I distinguish between 3 different tasks:
a) Developments that only change the VB code. They may call R-functions, but none are changed. Those tasks continue as before.
b) Developments that change one or more of the R functions. I suggest that then those functions return temporarily into the R-Instat code? The testing takes place without any changes needed in the 4 packages. Once the new versions are working well, then someone - usually @lilyclements will copy the new versions into the appopriate R package, delete it from the R-Instat code, and test that it works identically from there.
This step need not be done for every small change in any package. It could be (perhaps) once a month, for all changes for a new release. Occasionally a release could have a few functions in the code - in the old way.
c) Developments also needed one, or more new functions. They may adapt existing functions - giving them new names, or they may start separately.
How does that sound as a way of working. This does mean that you need to be able to get the R-code for any function, when you need it. I presume you all know the following way? I assume there may be better ones?
From the column summaries dialog script I could see it was using the summary_quantile function from databook. So I typed databook:::summary_quantile and it gives we the R code for the function in the output window.
@lilyclements how does this sound?
Beta Was this translation helpful? Give feedback.
All reactions