Save and close a word document by giving a name in R -
i trying use 2 libraries (descstool
, r2wd
) in order descriptive analysis of dataset saved in folder exploration later. these steps trying
library(desctools) library(r2wd) data(iris) <- ls() wrd <- getnewwrd(header=true) wdget() desc(get(i), plotit=true, wrd=wrd) wdsave(name="temp.doc", wdapp=.r2wd) wdquit()
although word capturing output supposed be, cannot save word file giving name (e.g.: temp.doc). can shed light here?
try
library(desctools) wrd <- getnewwrd() desc(iris, wrd=wrd) wrd[["activedocument"]]$saveas2(filename="describe iris.docx") wrd$quit()
Comments
Post a Comment