Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R 4.2.0 + distill? Error: CCTZ: Unrecognized output timezone #457

Closed
shannonpileggi opened this issue May 11, 2022 · 6 comments
Closed

R 4.2.0 + distill? Error: CCTZ: Unrecognized output timezone #457

shannonpileggi opened this issue May 11, 2022 · 6 comments

Comments

@shannonpileggi
Copy link

I recently updated to R 4.2.0 on my Windows 10 OS, and it was a bit of a bumpy installation with some edges to smooth out.

I created a new branch in my distill site and initialized a new draft post, which you can see here:
shannonpileggi/pipinghotdata_distill#30

Then I went to Build -> Build Website and I get the error:

==> rmarkdown::render_site(encoding = 'UTF-8')

Error: CCTZ: Unrecognized output timezone: "America/New_York"
Execution halted

Exited with status 1.

and I think I vaguely recall seeing some trouble with timezones earlier in the 4.2.0 installation.

Is this a me thing? Is this a distill thing? I'm generally unsure of whether to ask this on RStudio Community or in an issue as I suspect it could be due to a bug, but I am not confident. Any advice would be much appreciated. Thank you.

> devtools::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value                            
 version  R version 4.2.0 (2022-04-22 ucrt)
 os       Windows 10 x64                   
 system   x86_64, mingw32                  
 ui       RStudio                          
 language (EN)                             
 collate  English_United States.utf8       
 ctype    English_United States.utf8       
 tz       America/New_York                 
 date     2022-05-10                       

─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date       lib source                            
 askpass       1.1     2019-01-13 [1] CRAN (R 4.1.1)                    
 brio          1.1.2   2021-04-23 [1] CRAN (R 4.1.1)                    
 cachem        1.0.6   2021-08-19 [1] CRAN (R 4.1.1)                    
 callr         3.7.0   2021-04-20 [1] CRAN (R 4.1.1)                    
 cli           3.2.0   2022-02-14 [1] CRAN (R 4.1.3)                    
 crayon        1.4.1   2021-02-08 [1] CRAN (R 4.1.1)                    
 credentials   1.3.1   2021-07-25 [1] CRAN (R 4.1.1)                    
 curl          4.3.2   2021-06-23 [1] CRAN (R 4.1.1)                    
 desc          1.4.0   2021-09-28 [1] CRAN (R 4.1.1)                    
 devtools      2.4.3   2021-11-30 [1] CRAN (R 4.1.3)                    
 digest        0.6.28  2021-09-23 [1] CRAN (R 4.1.1)                    
 distill       1.3     2021-10-13 [1] CRAN (R 4.1.1)                    
 downlit       0.4.0   2021-10-29 [1] CRAN (R 4.1.2)                    
 ellipsis      0.3.2   2021-04-29 [1] CRAN (R 4.1.1)                    
 evaluate      0.15    2022-02-18 [1] CRAN (R 4.1.3)                    
 fansi         0.5.0   2021-05-25 [1] CRAN (R 4.1.1)                    
 fastmap       1.1.0   2021-01-25 [1] CRAN (R 4.1.1)                    
 fs            1.5.2   2021-12-08 [1] CRAN (R 4.1.2)                    
 gert          1.4.1   2021-09-16 [1] CRAN (R 4.1.1)                    
 gh            1.3.0   2021-04-30 [1] CRAN (R 4.1.1)                    
 gitcreds      0.1.1   2020-12-04 [1] CRAN (R 4.1.1)                    
 glue          1.6.2   2022-02-24 [1] CRAN (R 4.1.3)                    
 htmltools     0.5.2   2021-08-25 [1] CRAN (R 4.1.1)                    
 httr          1.4.2   2020-07-20 [1] CRAN (R 4.1.1)                    
 jsonlite      1.7.2   2020-12-09 [1] CRAN (R 4.1.1)                    
 knitr         1.38    2022-03-25 [1] CRAN (R 4.1.3)                    
 lifecycle     1.0.1   2021-09-24 [1] CRAN (R 4.1.1)                    
 magrittr      2.0.2   2022-01-26 [1] CRAN (R 4.1.3)                    
 memoise       2.0.0   2021-01-26 [1] CRAN (R 4.1.1)                    
 openssl       1.4.5   2021-09-02 [1] CRAN (R 4.1.1)                    
 pillar        1.6.4   2021-10-18 [1] CRAN (R 4.1.1)                    
 pkgbuild      1.2.0   2020-12-15 [1] CRAN (R 4.1.1)                    
 pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.1.1)                    
 pkgload       1.2.3   2021-10-13 [1] CRAN (R 4.1.1)                    
 prettyunits   1.1.1   2020-01-24 [1] CRAN (R 4.1.1)                    
 processx      3.5.2   2021-04-30 [1] CRAN (R 4.1.1)                    
 ps            1.6.0   2021-02-28 [1] CRAN (R 4.1.1)                    
 purrr         0.3.4   2020-04-17 [1] CRAN (R 4.1.1)                    
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.1.1)                    
 rappdirs      0.3.3   2021-01-31 [1] CRAN (R 4.1.1)                    
 remotes       2.4.1   2021-09-29 [1] CRAN (R 4.1.1)                    
 rlang         1.0.2   2022-03-04 [1] CRAN (R 4.1.3)                    
 rmarkdown     2.11    2021-09-14 [1] CRAN (R 4.1.1)                    
 roxygen2      7.1.2   2021-09-08 [1] CRAN (R 4.1.1)                    
 rprojroot     2.0.2   2020-11-15 [1] CRAN (R 4.1.1)                    
 rstudioapi    0.13    2020-11-12 [1] CRAN (R 4.1.1)                    
 sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 4.1.1)                    
 shrtcts       0.1.2   2022-03-30 [1] Github (gadenbuie/shrtcts@12ef67f)
 stringi       1.7.5   2021-10-04 [1] CRAN (R 4.1.1)                    
 stringr       1.4.0   2019-02-10 [1] CRAN (R 4.1.1)                    
 sys           3.4     2020-07-23 [1] CRAN (R 4.1.1)                    
 testthat      3.1.3   2022-03-29 [1] CRAN (R 4.1.3)                    
 tibble        3.1.6   2021-11-07 [1] CRAN (R 4.1.2)                    
 usethis       2.1.2   2021-10-25 [1] CRAN (R 4.1.1)                    
 utf8          1.2.2   2021-07-24 [1] CRAN (R 4.1.1)                    
 vctrs         0.3.8   2021-04-29 [1] CRAN (R 4.1.1)                    
 withr         2.4.3   2021-11-30 [1] CRAN (R 4.1.2)                    
 xfun          0.29    2021-12-14 [1] CRAN (R 4.1.2)                    
 xml2          1.3.2   2020-04-23 [1] CRAN (R 4.1.1)                    
 yaml          2.2.1   2020-02-01 [1] CRAN (R 4.1.1)                    

[1] C:/Program Files/R/R-4.2.0/library
@cderv
Copy link
Collaborator

cderv commented May 11, 2022

🤔 I am using Windows 10 too and I don't have any issues.

Possibly related to tidyverse/lubridate#1041

Can you run this to see if it errors ?

lubridate:::tzdir_get()

lubridate::mdy("05/11/2022", tz ="America/New_York")

lubridate::force_tz(
    time = lubridate::ymd_hms("2020-01-01 01:00:00 UTC"),
    tzone = "America/New_York"
    )

It seems like it fixes itself for the issue linked. did you restart your computer between R 4.2 install and having this issue ?

@shannonpileggi
Copy link
Author

Thank you for finding that issue, @cderv! And yes, I have restarted both my computer and R several times, but always good to check!

Well this is... something.

When I submit to console, I am getting the same errors as shown in the issue. And then when I reprexed.... no error??

image

I also executed lubridate:::tzdir_set(), restarted R, and re-ran the console commands and had the same result with errors.

Do you know what my next steps are? Or should I follow up on the lubridate issue instead? I am on lubridate 1.8.0.

@cderv
Copy link
Collaborator

cderv commented May 12, 2022

As you have issue in R console with lubridate in your new installation, I would probably report with them.

Not sure why this does not work for you. I have the same dir

> lubridate:::tzdir_get()
[1] "C:/PROGRA~1/R/R-42~1.0/share/zoneinfo"

And then when I reprexed.... no error??

Reprex is executing by default in a new session. Can you try outside of your distill project just in case ? in a fresh R session ?

You can also check using callr

callr::r(function() lubridate::mdy("05/11/2022", tz ="America/New_York"))

but it may inherits some configuration from you R environment.

@shannonpileggi
Copy link
Author

Thank you, @cderv! I have added to the lubridate issue.

@shannonpileggi
Copy link
Author

The issue is reolved - thank you everyone.

tidyverse/lubridate#1041 (comment)

@cderv
Copy link
Collaborator

cderv commented Jun 8, 2022

This issue is definitely showing how important session information really. sessioninfo::session_info() shared in your first post above showed us the problem... Windows & "Current R version" mismatch with "Package built R version" on the minor version. Should have been a flagged 🤷‍♂️

Thank you for sharing this : I'll definitely remember this and check that in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants