Hi All, Apologies if this is a very naive question. Is there a way to see the particular Rd file being processed right before a warning/error occurs? As far as I can tell, all my .Rd files use have names and titles and they are unique between Rd files (sometimes in a file I use something like \name{foo} \title{Foo}). I seem to be able to convert files to latex using: R CMD Rdconv --type=latex on all my Rd files without problems. Here is the warning and error: * checking PDF version of manual ... ERROR Rd conversion errors: Warning in file(con, "r") : file("") only supports open = "w+" and open = "w+b": using the former Error : : Sections \title, and \name must exist and be unique in Rd files I am using: R Under development (unstable) (2011-10-11 r57214) Platform: x86_64-pc-mingw32/x64 (64-bit) on Windows 7 with Rtools 2.14 and MikTeX 2.9 Any suggestions or pointers to manuals/documentation would be greatly appreciated. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/
On 11-10-12 3:24 AM, Joshua Wiley wrote:> Hi All, > > Apologies if this is a very naive question. Is there a way to see the > particular Rd file being processed right before a warning/error > occurs? As far as I can tell, all my .Rd files use have names and > titles and they are unique between Rd files (sometimes in a file I use > something like \name{foo} \title{Foo}). I seem to be able to convert > files to latex using: R CMD Rdconv --type=latex on all my Rd files > without problems. > > Here is the warning and error: > > * checking PDF version of manual ... ERROR > Rd conversion errors: > Warning in file(con, "r") : > file("") only supports open = "w+" and open = "w+b": using the former > Error : : Sections \title, and \name must exist and be unique in Rd filesIt does normally list the name. In your case, that appears to be "", based on the warning. I don't know how this would come about (I don't believe "" is a legal filename in Windows). If you could make a copy of the package available, I might be able to track this down. Duncan Murdoch> > I am using: > > R Under development (unstable) (2011-10-11 r57214) > Platform: x86_64-pc-mingw32/x64 (64-bit) > on Windows 7 with Rtools 2.14 and MikTeX 2.9 > > Any suggestions or pointers to manuals/documentation would be greatly > appreciated. > > Thanks, > > Josh > >
R CMD check is R code: you can run the R code for yourself using R's debugging facilities. In this case start with 'R CMD Rd2pdf pkg-name' (which should give the same error, as that is what R CMD check calls), then run that R code directly (there are comments in the code in R-devel about how to do so). On Wed, 12 Oct 2011, Joshua Wiley wrote:> Hi All, > > Apologies if this is a very naive question. Is there a way to see the > particular Rd file being processed right before a warning/error > occurs? As far as I can tell, all my .Rd files use have names and > titles and they are unique between Rd files (sometimes in a file I use > something like \name{foo} \title{Foo}). I seem to be able to convert > files to latex using: R CMD Rdconv --type=latex on all my Rd files > without problems. > > Here is the warning and error: > > * checking PDF version of manual ... ERROR > Rd conversion errors: > Warning in file(con, "r") : > file("") only supports open = "w+" and open = "w+b": using the former > Error : : Sections \title, and \name must exist and be unique in Rd files > > I am using: > > R Under development (unstable) (2011-10-11 r57214) > Platform: x86_64-pc-mingw32/x64 (64-bit) > on Windows 7 with Rtools 2.14 and MikTeX 2.9 > > Any suggestions or pointers to manuals/documentation would be greatly > appreciated.This is far too rare a problem to be documented in detail.> Thanks, > > Josh > > > -- > Joshua Wiley > Ph.D. Student, Health Psychology > Programmer Analyst II, ATS Statistical Consulting Group > University of California, Los Angeles > https://joshuawiley.com/ > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Hi. On Wed, Oct 12, 2011 at 9:24 AM, Joshua Wiley <jwiley.psych at gmail.com> wrote:> Hi All, > > Apologies if this is a very naive question. ?Is there a way to see the > particular Rd file being processed right before a warning/error > occurs? ?As far as I can tell, all my .Rd files use have names and > titles and they are unique between Rd files (sometimes in a file I use > something like \name{foo} \title{Foo}). ?I seem to be able to convert > files to latex using: R CMD Rdconv --type=latex on all my Rd files > without problems. > > Here is the warning and error: > > * checking PDF version of manual ... ERROR > Rd conversion errors: > Warning in file(con, "r") : > ?file("") only supports open = "w+" and open = "w+b": using the former > Error : : Sections \title, and \name must exist and be unique in Rd filesFor what it is worth: I also get this error when I try to "R CMD check" any of my many packages on R Under development (unstable) (2011-10-13 r57231) on Windows 7. It does not occur with R version 2.14.0 alpha (2011-10-14 r57245). I haven't had time to troubleshoot this and I figured I'll wait a few revisions. The error does not occur when using tools::checkRd(), e.g.> setwd("R.methodsS3/man/"); > filenames <- list.files(pattern="[.]Rd$"); > dummy <- sapply(pathnames, FUN=tools::checkRd); >/Henrik> > I am using: > > R Under development (unstable) (2011-10-11 r57214) > Platform: x86_64-pc-mingw32/x64 (64-bit) > on Windows 7 with Rtools 2.14 and MikTeX 2.9 > > Any suggestions or pointers to manuals/documentation would be greatly > appreciated. > > Thanks, > > Josh > > > -- > Joshua Wiley > Ph.D. Student, Health Psychology > Programmer Analyst II, ATS Statistical Consulting Group > University of California, Los Angeles > https://joshuawiley.com/ > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >