Learn R Programming

actel (version 1.3.0)

recoverLog: Recover latest actel crash log

Description

Recover latest actel crash log

Usage

recoverLog(file, overwrite = FALSE)

Value

No return value, called for side effects.

Arguments

file

Name of the file to which the log should be saved.

overwrite

Logical: If 'file' already exists, should its content be overwritten?

Examples

Run this code
# \dontshow{
sink(paste0(tempdir(), "/latest_actel_error_log.txt"))
cat(
"This is an example file
-
-
-
Timestamp: ", Sys.Date(), "
Function: example()")
sink()
# }

recoverLog(file = paste0(tempdir(), "/new_log.txt"))

# \dontshow{
file.remove(paste0(tempdir(), "/latest_actel_error_log.txt"))
file.remove(paste0(tempdir(), "/new_log.txt"))
# }

Run the code above in your browser using DataLab