Insert the markup table in the documentation of the package oxygen2 R

I am writing an R package and I want to include a table in the R help file, for example. in the @details section. I tried to include the markup code directly:

 #' | Tables | Are | Cool | #' | ------------- |:-------------:| -----:| #' | col 3 is | right-aligned | $1600 | #' | col 2 is | centered | $12 | 

But this does not give me the desired result. I enabled markup support for the entire package and installed roxygen2 6.0.1. Is there any support for markup tables? Should I use \tabular{} ?

+5
source share

Source: https://habr.com/ru/post/1265495/


All Articles