tomwenseleers / export

R package for streamlined export of graphs and data tables.
192 stars 35 forks source link

Error in colformat_int #51

Closed User1122334 closed 1 year ago

User1122334 commented 1 year ago

Whatever I try, I am getting this error

table2ppt(x=x,file=filen, digits = 1, digitspvals = 3)

Error in colformat_int(x = tab, col_keys = col.df) : unused argument (col_keys = col.df)

Even with the very basic example from the vignette run in an otherwise empty script I get this error. Am I doing something wrong here?

cvanderaa commented 1 year ago

Could you please provide the output of sessionInfo(). It is probably a version issue, either you are using an old version of some packages (hence updating packages should solve the issue), or you are using a new version and we have to fix this.

tomwenseleers commented 1 year ago

This should be resolved by updating these two packages on your side install.packages(c("officer", "flextable")) Closing this issue for now...

User1122334 commented 1 year ago

Sorry to be late but was out on fieldwork and sorry to report: updating the packages did not solve the problem. Guessing now that my R version is the problem, but am not sure which R version I'd need instead.

Update: I updated my R version to 4.2.2 and re-installed the packages, now it works.