wdSave2: wdSave2

Description Usage Arguments Examples

Description

There is a bug in R2wd::wdSave as path slashes are not replaced by double backslashes. This may cause an error when using RCDOMClient on some plattforms. This version simply does the replacement.

Usage

1
wdSave2(file = NULL, path = getwd(), wdapp = .R2wd)

Arguments

file

File name (if missing, Word will ask).

path

Path to file. Current working directory is used as default.

wdapp

The handle to the Word Application (usually not needed).

Examples

1
2
3
4
5
6
7
8
9
file <- system.file("inst/template.docx", package = "R2wdaddons")
wdGet2(file)

# save as temp file
file <- tempfile(fileext=".docx")
wdSave2(file)

# Fails: Does not yet notice that the path is absolute
# wdGet2(file)

markheckmann/R2wdaddons documentation built on Sept. 13, 2019, 8:40 a.m.