read_xlsx: open a connexion to an 'Excel' file

Description Usage Arguments Examples

View source: R/read_xlsx.R

Description

read and import an xlsx file as an R object representing the document. This function is experimental.

Usage

1
2
3
4
5
6
7
read_xlsx(path = NULL)

## S3 method for class 'rxlsx'
length(x)

## S3 method for class 'rxlsx'
print(x, target = NULL, ...)

Arguments

path

path to the xlsx file to use as base document.

x

an rpptx object

target

path to the xlsx file to write

...

unused

Examples

1
2
3
4
5
6
7
read_xlsx()
# write a rdocx object in a docx file ----
if( require(magrittr) ){
  read_xlsx() %>% print(target = tempfile(fileext = ".xlsx"))
  # full path of produced file is returned
  print(.Last.value)
}

officer documentation built on July 24, 2018, 9:02 a.m.