I'm getting the following form R CMD CHECK mypackage ----------- * checking Rd files ... WARNING Error in Rd[[which]] : subscript out of bounds problem found in ?myfunction.Rd? --------- This is... not the most helpful error. I'd be happy to make a minimal .Rd example file if someone can point me to what a minimal .Rd file has in it. The file is already pretty minimal, so it's possible I've already gone to small and that is the reason for the error. Best, Paul Bailey
Error in Rd[[which]] : subscript out of bounds
3 messages · Henrik Bengtsson, Paul Bailey
sessionInfo()? If not R v2.14.0, try with that version first. Then
have a look checkRd() of the 'tools' package, cf. help("checkRd",
package="tools"). That function allows you to check your Rd file from
within R so that you get more information/so that you can use
traceback() etc.
My $.02
/Henrik
On Sun, Nov 27, 2011 at 1:46 PM, Paul Bailey <pdbailey at umd.edu> wrote:
I'm getting the following form R CMD CHECK mypackage ----------- * checking Rd files ... WARNING Error in Rd[[which]] : subscript out of bounds problem found in ?myfunction.Rd? --------- This is... not the most helpful error. I'd be happy to make a minimal .Rd example file if someone can point me to what a minimal .Rd file has in it. The file is already pretty minimal, so it's possible I've already gone to small and that is the reason for the error. Best, Paul Bailey
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
sessionInfo()? If not R v2.14.0, try with that version first. Then
have a look checkRd() of the 'tools' package, cf. help("checkRd",
package="tools"). That function allows you to check your Rd file from
within R so that you get more information/so that you can use
traceback() etc.
Sorry, should have said this is in 2.14.0.
Using traceback() as you suggested solved this problem for me, thanks. this made it pretty obvious:
2: checkUnique("\\description")
looks like I typed description when I wanted details.
Thanks!
Best,
Paul Bailey