On 05/02/2008 6:29 AM, Dani Valverde wrote: > Hello, > I am trying to compile a file .Rd into .html using R CMD Rdconv -t=html > /file.rd/>/file.html./ It seems that the process works ok but instead of > having for example loo.cv(NMRTools) at the top of the html file I have > loo.cv{unknown}. Any ideas on how to solve this?
The Rdconv Perl script fixes the package name as "unknown". You would need to edit the script to change it. But why not just let the R scripts do it when you build help for the package? It's probably easier to edit the HTML output, but if you really want to have the file produced with your chosen name: In Windows, the script lives in R_HOME/bin/Rdconv. I expect it's somewhere similar in Unix. The line to change is this one: Rdconv($ARGV[0], $opt_type, $opt_debug, $out, "unknown", "", $enc); (around line 75 in current versions). Argument 5 is used as the name of the package. You could hard code the name you want, or do more extensive edits and add this as an option to the Rdconv call. (Someone might volunteer to do it for you if you explain the need for this, and why using the standard package installation method isn't sufficient.) Duncan Murdoch ______________________________________________ R-help@r-project.org mailing list 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.