fix: example changes to pass R CMD checks

This commit is contained in:
Martin Chan 2021-10-15 15:05:42 +01:00
Родитель d8871239d0
Коммит db3e2b9126
4 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -108,6 +108,10 @@
#' @importFrom data.table ":=" "%like%" "%between%"
#'
#' @examples
#' # Create a sample small dataset
#' orgs <- c("Customer Service", "Financial Planning", "Biz Dev")
#' em_data <- em_data[em_data$Organization %in% orgs, ]
#'
#' # Examples of how to test the plotting options individually
#' # Sample of 10 work patterns
#' em_data %>%

Просмотреть файл

@ -61,7 +61,8 @@
#' @examples
#'
#' # Create a sample small dataset
#' em_data <- em_data[em_data$Date == as.Date("2020-01-19", "%Y-%m-%d"), ]
#' orgs <- c("Customer Service", "Financial Planning", "Biz Dev")
#' em_data <- em_data[em_data$Organization %in% orgs, ]
#'
#' # Return visualization of percentage distribution
#' workpatterns_area(em_data, return = "plot", values = "percent")

Просмотреть файл

@ -135,6 +135,10 @@ the following:\preformatted{em_data \%>\%
}
\examples{
# Create a sample small dataset
orgs <- c("Customer Service", "Financial Planning", "Biz Dev")
em_data <- em_data[em_data$Organization \%in\% orgs, ]
# Examples of how to test the plotting options individually
# Sample of 10 work patterns
em_data \%>\%

Просмотреть файл

@ -70,6 +70,11 @@ Uses the Hourly Collaboration query to produce an area plot of
Emails sent and IMs sent attended by hour of the day.
}
\examples{
# Create a sample small dataset
orgs <- c("Customer Service", "Financial Planning", "Biz Dev")
em_data <- em_data[em_data$Organization \%in\% orgs, ]
# Return visualization of percentage distribution
workpatterns_area(em_data, return = "plot", values = "percent")