Description Usage Arguments Details Value Methods (by class) Useful logging functions Examples
Returns a tibble of logs for the account, in the last period stated.
1 2 3 4 5 6 7 8 9 10 11 12 13 | logs(x, from, .show.progress)
## S3 method for class 'character'
logs(x, from = (Sys.Date() %m-% months(1)), .show.progress = interactive())
## S3 method for class 'brandseyer2.account'
logs(x, from = (Sys.Date() %m-% months(1)), .show.progress = interactive())
## S3 method for class 'list'
logs(x, from = (Sys.Date() %m-% months(1)), .show.progress = interactive())
## S3 method for class 'data.frame'
logs(x, from = (Sys.Date() %m-% months(1)), .show.progress = interactive())
|
x |
An object to read logs from. |
from |
A date indicating from when to read dates. |
.show.progress |
A logical indicating whether to show a progress bar or not. By default, this only shows a progress bar in interactive environments. Also, progress bars will only be shown if 3 or more accounts are being examined. |
Logs can be read from various different kinds of object. An account()
object is the most basic, although logs can also be read from a list of
account objects (in which case the returned tibble will include an account code column),
or from a tibble containing an account code column, such as that returned
by account_list()
.
A tibble of log information, including the user that perform the action, and how many times the action was performed.
character
: Reach for an account code character vector.
brandseyer2.account
: For account()
objects.
list
: For a list of accounts
data.frame
: Read for a data frame, such as returned by account_list()
logs_retrosent()
filters log information to find retrosend specific information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ## Not run:
# Defaults to the last month of data
logs("TEST01AA")
# The last week
logs("TEST01AA", Sys.Date() - lubridate::weeks(1))
# The last day
logs("TEST01AA", Sys.Date() - lubridate::days(1))
# The last three months
library(lubridate)
logs("TEST01AA", Sys.Date() %m-% months(1))
## End(Not run)
## Not run:
# Read logs for an account
account("TEST01AA") %>%
logs()
## End(Not run)
## Not run:
# Read for a list of accounts
account("TEST01AA", "TEST02AA") %>%
logs()
## End(Not run)
## Not run:
account_list() %>%
logs()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.