> 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/ _______________________________________________ Roxygen-devel mailing list Roxygen-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel