xg_inspect: Unzip, linkify, and browse an xlsx file

View source: R/xg_inspect.R

xg_inspectR Documentation

Unzip, linkify, and browse an xlsx file

Description

Unzip, linkify, and browse an xlsx file

Usage

xg_inspect(path, exdir = NULL)

Arguments

path

Character, length one. Path to xlsx file.

exdir

Passed to utils::unzip(). Directory in which to unpack the xlsx. By default, if unpacking foo.xlxs, this will be foo/ in the same directory as foo.xlsx.

Value

Path to the directory being browsed, invisibly.

Examples

file.copy(xg_example("datasets"), "datasets.xlsx")
xg_inspect("datasets.xlsx")

## clean up
unlink("datasets", recursive = TRUE)
file.remove("datasets.xlsx")

jennybc/excelgesis documentation built on July 29, 2023, 4:31 a.m.