sanitize_images: Remove unused media from a document

View source: R/post-proc.R

sanitize_imagesR Documentation

Remove unused media from a document

Description

The function will scan the media directory and delete images that are not used anymore. This function is to be used when images have been replaced many times.

Usage

sanitize_images(x, warn_user = TRUE)

Arguments

x

rdocx or rpptx object

warn_user

TRUE to make sure users are warned when using this function that will be un-exported in a next version


officer documentation built on Dec. 4, 2025, 9:08 a.m.