Skip to content

Instantly share code, notes, and snippets.

View markheckmann's full-sized avatar
🦮

Mark Heckmann markheckmann

🦮
View GitHub Profile
@markheckmann
markheckmann / remove_password_excel.R
Last active February 4, 2022 05:27
Remove sheet's password protection in Excel
# remove sheet protection in Excel
# Sample file: https://www.dropbox.com/s/4ul0kowrscyr8cz/excel_protected.xlsx?dl=0
library(stringr)
library(zip)
# file with protected sheets
file <- "data/excel_protected.xlsx"
# file name and path after removing protection
@markheckmann
markheckmann / officer_issue_681_examples.R
Last active October 8, 2025 14:18
WIP: pass dots to ph_with method. Working version for all methods.
### Prepare ----------------------------------------
library(devtools)
dev_mode(TRUE)
devtools::install_github("markheckmann/officer", "aec62c3")
library(officer)
library(ggplot2)