[Roxygen-devel] Error when creating Rd file

Manuel J. A. Eugster Manuel.Eugster at stat.uni-muenchen.de
Wed Feb 25 10:15:04 CET 2009


Hi Lars,

I run in this error too, but couldn't solve it easily until
now. It seems like the parser has a problem if there are
defaul values which are longer than a line; as in your example.

My workaround was to write the usage by hand:

#' @usage
#' test<-function(binNames=c("stateIdx.bin","stateIdxLbl.bin","actionIdx.bin",
#' "actionIdxLbl.bin","actionWeight.bin","actionWeightLbl.bin","transProb.bin")
#' ,out='r_convert.hmp', duration=1)


I created a bug tracker item; thank's for your report!


Manuel.



Lars Relund schrieb:
> Hi 
> 
> I have the following function defined in test/R/test.R:
> 
> test<-function(binNames=c("stateIdx.bin","stateIdxLbl.bin","actionIdx.bin",
>  
> "actionIdxLbl.bin","actionWeight.bin","actionWeightLbl.bin","transProb.bin")
> ,out='r_convert.hmp', duration=1) {
> }
> 
> Running roxygen produce the following error:
> 
>> library(roxygen)
>> roxygenize("test", unlink.target=T)
> Writing test to test.roxygen/man/test.Rd
> Error in col(m) : 
>   a matrix-like object is required as argument to 'row/col'
>> sessionInfo()
> R version 2.8.1 (2008-12-22) 
> i386-pc-mingw32 
> 
> locale:
> LC_COLLATE=Danish_Denmark.1252;LC_CTYPE=Danish_Denmark.1252;LC_MONETARY=Dani
> sh_Denmark.1252;LC_NUMERIC=C;LC_TIME=Danish_Denmark.1252
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base     
> 
> other attached packages:
> [1] roxygen_0.1
>> packageDescription("roxygen")
> Package: roxygen
> Version: 0.1
> License: GPL (>= 2)
> Description: A Doxygen-like in-source documentation system for Rd,
>         collation, namespace and callgraphs.
> Title: Literate Programming in R
> Author: Peter Danenberg <pcd at roxygen.org>, Manuel Eugster
>         <Manuel.Eugster at stat.uni-muenchen.de>
> Maintainer: Peter Danenberg <pcd at roxygen.org>
> URL: http://roxygen.org
> Suggests: Rgraphviz (>= 1.19.2)
> Collate: 'functional.R' 'list.R' 'roxygen.R' 'string.R' 'parse.R'
>         'roclet.R' 'callgraph.R' 'description.R' 'collate.R'
>         'namespace.R' 'Rd.R' 'roxygenize.R'
> Revision: 217
> Packaged: Sun Feb 22 05:18:49 2009; rforge
> Built: R 2.8.1; i386-pc-mingw32; 2009-02-23 08:19:42; windows
> 
> -- File: C:/Programmer/R/R-2.8.1/library/roxygen/Meta/package.rds 
> 
> -------------
> 
> 
> Any ideas?
> 
> 
> Best regards
> 
> Lars Relund Nielsen
> Project scientist
> 
> 
> UNIVERSITY OF AARHUS
> Faculty of Agricultural Sciences
> Dept. of Genetics and Biotechnology
> Blichers Allé 20, P.O. BOX 50
> DK-8830 Tjele
> 
> _______________________________________________
> Roxygen-devel mailing list
> Roxygen-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel


More information about the Roxygen-devel mailing list