[ESS] automatically export Rd generated by roxygen to ../man/?

Henning Redestig henning.red at googlemail.com
Mon Sep 27 12:20:22 CEST 2010


> Suppose I'm editing a source file in a package under the pkgname/R/
> directory, I've done the roxygen-style documentation, and can C-c C-e
> C-r to view the Rd source; now my question is, is it possible to
> export this file (or buffer) to pkgname/man/function_name.Rd? I didn't
> find any hints in the manual. Thanks a lot!
>
> Regards,
> Yihui

Typically the export of all your roxygen entries in the folder pkgname
is done by executing 'R CMD roxygen -d pkgname' and not done on a
file-per-file basis. You can however get single files too, by calling
C-u C-c C-e C-r the preview is placed in a buffer associated with a file
with a suitable name. Just save it where you want it.


-- 

/Henning Redestig

Metabolome Informatics Unit | Yokohama RIKEN Plant Science Center



More information about the ESS-help mailing list