close_all_connections: Cleanup function to unset/close all open connections

Description Usage Arguments Value Examples

View source: R/close_all_connections.R

Description

This function is meant to be called at the end of a run of the app. It will close all open connections to files or databases. This closes ALL connections. Not just the ones opened by this package.

Usage

1
close_all_connections(logfile_dir = tempdir(), headless = TRUE)

Arguments

logfile_dir

(Optional, String, default: "tempdir()") The absolute path to folder where the logfile will be stored.

headless

(Optional, Boolean, default: TRUE) Indicating, if the function is run only in the console (headless = TRUE) or on a GUI frontend (headless = FALSE).

Value

No return value, called for side effects (see description)

Examples

1
2
3
4
close_all_connections(
  logfile_dir = tempdir(),
  headless = TRUE
)

DIZutils documentation built on May 25, 2021, 5:07 p.m.