Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janmarvin/ovbars
Accesses the 'ovba' rust library to extract vba binary files
https://github.com/janmarvin/ovbars
r r-package vba
Last synced: about 2 months ago
JSON representation
Accesses the 'ovba' rust library to extract vba binary files
- Host: GitHub
- URL: https://github.com/janmarvin/ovbars
- Owner: JanMarvin
- License: other
- Created: 2024-12-12T12:06:56.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T12:47:57.000Z (about 2 months ago)
- Last Synced: 2024-12-12T13:20:10.393Z (about 2 months ago)
- Topics: r, r-package, vba
- Language: R
- Homepage: https://janmarvin.github.io/ovbars/
- Size: 2.79 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# ovbars
[![R-CMD-check](https://github.com/JanMarvin/ovbars/workflows/R-CMD-check/badge.svg)](https://github.com/JanMarvin/openxlsx2/actions)
[![r-universe](https://janmarvin.r-universe.dev/badges/openxlsx2)](https://janmarvin.r-universe.dev/ovbars)This R package allows using the `ovba` rust library to read the `vbaProject.bin` file which is included in the `xlsm` files as defined by the Office Open XML standard. The macro code is embedded in a binary OVBA file. This is readable via `ovbars`.
```{r}
fl <- "https://github.com/JanMarvin/openxlsx-data/raw/refs/heads/main/gh_issue_416.xlsm"
wb <- openxlsx2::wb_load(fl)
vba <- wb$vbaProjectcode <- ovbars::ovbar_out(name = vba)
message(code["Sheet1"])ovbars::ovbar_meta(name = vba)
```## Development
```r
# document code
rextendr::document()
# update vendored packages
rextendr::vendor_pkgs()
```## License
This package is licensed under the MIT license. At the moment it bundles a patched version of the [`ovba`](https://github.com/tim-weis/ovba) library, which is released under the MIT License Copyright (c) 2020 Tim Weis.