Code Monkey home page Code Monkey logo

Comments (6)

shannonpileggi avatar shannonpileggi commented on August 19, 2024 1

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

from distill.

cderv avatar cderv commented on August 19, 2024

🤔 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 ?

from distill.

shannonpileggi avatar shannonpileggi commented on August 19, 2024

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.

from distill.

cderv avatar cderv commented on August 19, 2024

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.

from distill.

shannonpileggi avatar shannonpileggi commented on August 19, 2024

The issue is reolved - thank you everyone.

tidyverse/lubridate#1041 (comment)

from distill.

cderv avatar cderv commented on August 19, 2024

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!

from distill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.