Re: [R-pkg-devel] Advice on elegant way to alias function name

2022-09-01 Thread Uwe Ligges
On 01.09.2022 16:48, J C Nash wrote: Hi, I've a package where it has been suggested that one of the functions -- call it "myfn()" -- should be called something else, say "thefn()". Of course, I'll need to keep the old name around for a while. Web search has suggested simple assignment of

Re: [R-pkg-devel] Advice on elegant way to alias function name

2022-09-01 Thread Sokol Serguei
Le 01/09/2022 à 16:48, J C Nash a écrit : Hi, I've a package where it has been suggested that one of the functions -- call it "myfn()" -- should be called something else, say "thefn()". Of course, I'll need to keep the old name around for a while. Web search has suggested simple assignment o

[R-pkg-devel] Examples with conditional blocks

2022-09-01 Thread Lenth, Russell V
Dear package developers, What is the best way to provide examples in help pages that should only be run under certain conditions -- e.g., whether another package is installed? The code that is run conditionally is then an expression, so only the results of the last statement are displayed; and