Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

autoRefresh

Force Refresh Pivot Tables and Formulae


Description

Functions to force formula calculation or refresh of pivot tables when the Excel file is opened.

Usage

forceFormulaRefresh(file, output = NULL, verbose = FALSE)

forcePivotTableRefresh(file, output = NULL, verbose = FALSE)

Arguments

file

the path of the source file where formulae/pivot table needs to be refreshed

output

the path of the output file. If it is NULL then the source file will be overwritten

verbose

Whether to make logging more verbose

Details

forcePivotTableRefresh forces pivot tables to be refreshed when the Excel file is opened. forceFormulaRefresh forces formulae to be recalculated when the Excel file is opened.

Value

Does not return any results

Author(s)

Tom Kwong

Examples

# Patch a file where its pivot tables are not recalculated when the file is opened
## Not run: 
forcePivotTableRefresh("/tmp/file.xlsx")
forcePivotTableRefresh("/tmp/file.xlsx", "/tmp/fixed_file.xlsx")

## End(Not run)
# Patch a file where its formulae are not recalculated when the file is opened
## Not run: 
forceFormulaRefresh("/tmp/file.xlsx")
forceFormulaRefresh("/tmp/file.xlsx", "/tmp/fixed_file.xlsx")

## End(Not run)

xlsx

Read, Write, Format Excel 2007 and Excel 97/2000/XP/2003 Files

v0.6.5
GPL-3
Authors
Adrian Dragulescu [aut], Cole Arendt [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.