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.

Usage

1
close_all_connections(logfile_dir, headless)

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
)

miracum/misc-dizutils documentation built on Nov. 21, 2020, 7:41 p.m.