Learn R Programming

DIZutils (version 0.0.12)

close_all_connections: Cleanup function to unset/close all open connections

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

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

Run this code
# NOT RUN {
close_all_connections(
  logfile_dir = tempdir(),
  headless = TRUE
)
# }

Run the code above in your browser using DataLab