I have been attempting to use CalendR to generate a color-coded calendar. I keep getting an error message that states unused arguments. The only thing I can think why is because I am using multiple packages (dplyr and lubridate) as well OR because the version CalendR was developed under does not align with the version of R I am using. I am at a loss.
school_year <- "2024-25"
start_date <- "2024-08-01"
end_date <- "2025-06-30"
calendar <- calendR(
start_date = start_date,
end_date = end_date,
weeknames = c("Mon" ,"Tue", "Wed", "Thu", "Fri", "Sat", "Sun"),
title = paste(school_year, "Bus Projections", sep = " "),
subtitle = paste("Projected # of Buses Needed Each Day. As of ", Sys.Date(), ".", sep=""),
special.days = calendar_data,
special.col = c("#17d100",
"#84ef77",
"yellow",
"dark orange",
"red",
"darkred",
"grey"),
months.col = "white",
mbg.col = "black",
legend.pos = "top",
orientation = "portrait",
pdf = TRUE,
doc_name = paste(school_year, "Bus Projections", Sys.Date()))`
I’ve tried using start_date= “2024-08-01” except for start_date=start_date and the same for end_date.
I’ve also tried saving everything and using only CalendR (no library of dplyr or lubridate).
C Norris is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1