[Roxygen-devel] [roxygen2] More explicit error messages?

Hadley Wickham hadley at rice.edu
Mon Sep 26 15:55:19 CEST 2011


> If one puts roxygen documentation before a statement setClassUnion one gets
> the error of Missing name at the line of setClassUnion.
> I think it is because this statement is not known to roxygen2 parser.
> Adding the following to roclet-rd.R makes it aware it, but I am not sure if
> the name 'S4class' is correct in this case:
>
> register.srcref.parser('setClassUnion', function(call, env) {
>  list(S4class = as.character(call$name))
> })

Ok, please file a bug report at https://github.com/klutometis/roxygen/issues

Thanks!

Hadley


-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/


More information about the Roxygen-devel mailing list