insightsengineering / chevron

Standard TLGs For Clinical Trials Reporting
https://insightsengineering.github.io/chevron/
Other
10 stars 1 forks source link

R CMD CHECK ERROR #783

Open pawelru opened 3 hours ago

pawelru commented 3 hours ago

R-4.5-linux https://github.com/r-universe/pharmaverse/actions/runs/10886780972/job/30207926288

* checking examples ... [17s/17s] ERROR
Running examples in ‘chevron-Ex.R’ failed
The error most likely occurred in:

> ### Name: format_date
> ### Title: Formatting of date
> ### Aliases: format_date
> 
> ### ** Examples
> 
> format_date("%d%b%Y")(as.Date("2021-01-01"))
[1] "01JAN2021"
> format_date("%d%b%Y")(as.POSIXct("2021-01-01 00:00:01", tz = "NZ"))
Error in C_force_tz(to_posixct(time), tz, roll_dst) : 
  CCTZ: Unrecognized timezone of the input vector: "NZ"
Calls: <Anonymous> ... <Anonymous> -> .force_tz -> from_posixct -> C_force_tz
Execution halted
BFalquet commented 3 hours ago

Liming pushed a change on the CRAN release branch which should solve the issue (tz are not implemented by default on every machine)