[R] Which is better: Modifying an existing package or creating a new one?

billy am wickedpuppy at gmail.com
Thu Mar 19 15:55:31 CET 2015


I would second that.

----------------------------------------------------------------------------------
|

http://billyam.com  || http://use-r.com  || http://shinyserver.com (BETA)

SAS Certified Base Programmer for SAS 9
Oracle SQL Expert(11g)



On Thu, Mar 19, 2015 at 4:39 PM, Thierry Onkelinx
<thierry.onkelinx at inbo.be> wrote:
> I would consider a third option: suggest the changes to the package
> authors. The authors might include your modifications to the original
> package if they feel that it would improve their package.
>
> Otherwise go for option 2. Option 1 will be harder to maintain if you want
> benefit from the updates on the packages A, B, C, D, E.
>
> Best regards,
>
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
> Forest
> team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
> Kliniekstraat 25
> 1070 Anderlecht
> Belgium
>
> To call in the statistician after the experiment is done may be no more
> than asking him to perform a post-mortem examination: he may be able to say
> what the experiment died of. ~ Sir Ronald Aylmer Fisher
> The plural of anecdote is not data. ~ Roger Brinner
> The combination of some data and an aching desire for an answer does not
> ensure that a reasonable answer can be extracted from a given body of data.
> ~ John Tukey
>
> 2015-03-19 8:56 GMT+01:00 jpm miao <miaojpm at gmail.com>:
>
>> Hi,
>>
>>    Given that I frequently use A, B, C, D, E packages.
>>    In each of the 5 packages, I intend to modify one of the functions.
>>    Two ways:
>>
>> 1st: Modify A, B, C, D, E to A', B', C', D', E'
>>    Then I will use library(A') ..... library(E') instead of A, B, C, D, E.
>>    or Just keep the names A, B, C, D, E but modify the content
>>
>> 2nd: create a package F and add the five functions to the F package. For
>> each of the 5 functions, a line "library(A)"... or "library(E)" is
>> required.
>>
>>     Then I will need "library(F)" when I create a new program.
>>
>>    Which is a better way in terms of time consumption and code portability?
>> If I move the codes to a new computer, which way will be easier?
>>
>>    Any suggestion?
>>
>>    Thanks,
>>
>> Miao
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list