oxview

oxview is an R package that bundles the office-open-xml-viewer to provide preview functionality for .docx, .pptx, and .xlsx files directly within the RStudio Viewer pane.

Installation

You can install the development version of oxview from GitHub with:

# install.packages("remotes")
remotes::install_github("JanMarvin/oxview")

Or from r-universe with:

# Enable repository from janmarvin
options(repos = c(
  janmarvin = 'https://janmarvin.r-universe.dev',
  CRAN = 'https://cloud.r-project.org'))
# Download and install oxview in R
install.packages('oxview')

Usage

if (interactive()) {
  oxview::ox_view(x = "https://github.com/JanMarvin/msoc/raw/refs/heads/main/inst/extdata/Untitled1.docx")
  oxview::ox_view(x = "https://github.com/JanMarvin/msoc/raw/refs/heads/main/inst/extdata/Untitled1.pptx")
  oxview::ox_view(x = "https://github.com/JanMarvin/msoc/raw/refs/heads/main/inst/extdata/Untitled1.xlsx")
}

Screenshots

xlsx

xlsx viewer screenshot

docx

docx viewer screenshot

pptx

pptx viewer screenshot

License

This package is licensed under the MIT license and is based on office-open-xml-viewer (by Yuki Yokotani; COPYRIGHT 2026) released under the MIT license.