logfile: Logfile for external progress tracking

Description Usage Arguments Value Examples

Description

This reference class keeps track of a logfile, which can be updated within a loop etc. and tracked from _outside_ (in an external process), using 'status()'.

Usage

1
logfile(path, n, here = TRUE)

Arguments

path

path to the logfile

n

total number of iterations

here

should base path of the logfile be located using 'here::here()'

Value

A ref class with methods 'update()', 'print()', and 'remove()'

Examples

1
2
3
4
## Not run: 
log <- logfile("logfile.log", 100)

## End(Not run)

cszang/logvogel documentation built on May 28, 2019, 4:35 p.m.