wdGet2: wdGet2

Description Usage Arguments Value Examples

Description

There is a bug in R2wd::wdGet 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
2
wdGet2(filename = NULL, path = getwd(), method = "RDCOMClient",
  visible = TRUE)

Arguments

path

A Path to the file, if not set otherwise the working directory is used.

method

Use "rcom" (default) or "RDCOMClient".

visible

If the Applciation should be visible.

x

A filename.

Value

Store invisible file handle named in global environment.

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.