[Rd] R CMD <custom>?

Yihui Xie xie at yihui.name
Mon Nov 28 20:57:13 CET 2011


I strongly support this proposal. This will be a fantastic feature!

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Mon, Nov 28, 2011 at 1:48 PM, Hadley Wickham <hadley at rice.edu> wrote:
> It'd be cool if R CMD was user extensible through packages, so that (e.g.)
>
> R CMD mypackage::mycommand
>
> would do something like:
>
> path <- system.file("cmd", paste(command, ".r"), package = package)
> if (!file.exists(path)) {
>  stop("Command ", command, " in ", package, " does not exist")
> } else {
>  source(path)
> }
>
> And maybe `R CMD mypackage` would look in mypackcage/cmd/default.r.
>
> Hadley
>
> On Mon, Nov 28, 2011 at 1:16 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
>> Hi,
>>
>> is it possible to add a custom script such that it is called via R CMD
>> <custom>?  Is R CMD searching for it elsewhere than R_HOME/bin/?  I'm
>> looking for an non-admin alternative, so copying the script to
>> R_HOME/bin/ will not do (in case the user don't have enough permission
>> to write there).
>>
>> /Henrik
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
>
>
> --
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list