NickCH-K / vtable

An R package for creating Variable Documentation Files

Home Page:https://nickch-k.github.io/vtable/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused argument `numformat`

MadsLang opened this issue · comments

I get an error when I try to run the example for the argument numformat from the vignette here: https://cran.r-project.org/web/packages/vtable/vignettes/sumtable.html

This code:

library("vtable")
vtable::st(iris, numformat = c('|cm', 'Sepal.Width' = 'percent'))

The error message:

Error in vtable::st(iris, numformat = c("|cm", Sepal.Width = "percent")) : 
  unused argument (numformat = c("|cm", Sepal.Width = "percent"))
Execution halted

Is this argument no longer supported, or what could be the issue?

That's odd, it works for me (and worked when the vignette compiled!)

The numformat option is actually new, added just a few versions ago. Is your version perhaps not updated? Try updating to the newest version of vtable and give it a go again.

Yes - that was the issue 👍 Thank for the quick reply