Creates Log Files

Contains functions to help create log files. The package aims to overcome the difficulty of the base R sink() command. The log_print() function will print to both the console and the file log, without interfering in other write operations.


logr version logr lifecycle logr downloads logr total downloads R-CMD-check Codecov test coverage

Introduction to logr

logr package logo

There are already several logging packages for R. Why create another one?

Because the other logging packages all have something in common: they were built for R package developers.

What is different about the logr package is that it is built for normal R users: statisticians, analysts, researchers, students, teachers, business people, etc.

The logr package is for those people who just need a written record of their program execution. It is designed to be as simple as possible, yet still produce a useful and complete log.

There are only three steps to creating a logr log:

  1. Open the log
  2. Print to the log
  3. Close the log

Now this a logging system that anyone can use!

Installation

The easiest way to install the logr package is to run the following command from your R console:

install.packages("logr")

Then put the following line at the top of your script:

library(logr)

For examples and usage information, please visit the logr documentation site here

Introductory Video

For a quick, high-level introduction to the logr package, please see the following video:

Logr Package Introduction

More information about the package is available on the Getting Started page, and complete documentation can be found at the Function Reference.

Getting Help

If you need help, the first place to turn to is the logr web site.

If you want to look at the code for the logr package, visit the github page here.

If you encounter a bug or have a feature request, please submit an issue here.

See Also

The logr package is part of the sassy meta-package. The sassy meta-package includes several packages that help make R easier for SASĀ® programmers. You can read more about the sassy package here.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("logr")

1.4.0 by David Bosak, 21 days ago


https://logr.r-sassy.org, https://github.com/dbosak01/logr


Report a bug at https://github.com/dbosak01/logr/issues


Browse source code at https://github.com/cran/logr


Authors: David Bosak [aut, cre] , Rikard Isaksson [ctb]


Documentation:   PDF Manual  


CC0 license


Imports withr, utils

Depends on common

Suggests knitr, rmarkdown, testthat, tidylog, dplyr, covr


Imported by sassy, stochLAB.

Suggested by fmtr, libr, multiDoE, procs, reporter, sendigR.


See at CRAN