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

installation problem - Error in as.POSIXlt #574

hylaarborea opened this Issue Sep 4, 2017 · 4 comments


None yet
4 participants

hylaarborea commented Sep 4, 2017

I am trying to install lubridate but I have always the same error message. Looking around it looks related to the fact that it has a function date() which already exist also as base::date(). But during the test of the package it calls date() and therefore the error.

Here the details:

It looks like I am the only one to have this problem. I tried to install also an old version of R, to add or remove other packages but I have always the same error...
Maybe someone here can help?


This comment has been minimized.


DavisVaughan commented Sep 25, 2017

@hylaarborea, this may help you. Just solved a similar problem.


Look at the very bottom of this issue for the section on an .Rprofile script. If that .Rprofile script has a .Last function defined that calls date() then it will crash the installation of lubridate.


This comment has been minimized.

hylaarborea commented Sep 25, 2017

Thanks @DavisVaughan
it was just because the line
in the file:


This comment has been minimized.

pgensler commented Sep 26, 2017

@DavisVaughan @hylaarborea It may be worth noting that you can indeed edit your .Rprofile from this:
So maybe a simple purrr script that iterates over the items in your .Rprofile, and if it detects that the .Last function is there, just delete it/remove that line? I would think this is a bad practice, but good to know it's possible to develop a workaround to remove the line.


This comment has been minimized.


vspinu commented Oct 1, 2017

This issue was caused by lubridate. We were not handling missing argument to date. Sorry for the trouble. Now fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment