R/wdNewDoc.R

wdNewDoc <-
function (name=NULL,wdapp=.R2wd)
{
    if (is.null(wdapp[['Documents']])) stop('broken handle to Word. Reset using wdGet')
    wdapp[['Documents']]$Add()
    if (!is.null(name)) wdSave(name)
    invisible()
}

Try the R2wd package in your browser

Any scripts or data that you put into this service are public.

R2wd documentation built on May 2, 2019, 8:54 a.m.