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

Wrong syntax in update.Date() crashes R #270

Closed
huftis opened this Issue Oct 21, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@huftis

huftis commented Oct 21, 2014

The following crashes (!) R:

library(lubridate)
mydate=Sys.Date()
update(mydate, 1)

It is of course the wrong syntax (it should be, e.g., update(mydate, days=1)). But still, it should return an error message, not crash R.

Package: lubridate
Version: 1.3.3
Maintainer: Garrett Grolemund garrett@rstudio.com
Built: R 3.1.1; x86_64-w64-mingw32; 2014-08-19 22:35:44 UTC; windows

R Version:
platform = x86_64-w64-mingw32
arch = x86_64
os = mingw32
system = x86_64, mingw32
status =
major = 3
minor = 1.1
year = 2014
month = 07
day = 10
svn rev = 66115
language = R
version.string = R version 3.1.1 (2014-07-10)
nickname = Sock it to Me

Windows 7 x64 (build 7601) Service Pack 1

Locale:
LC_COLLATE=Norwegian-Nynorsk_Norway.1252;LC_CTYPE=Norwegian-Nynorsk_Norway.1252;LC_MONETARY=Norwegian-Nynorsk_Norway.1252;LC_NUMERIC=C;LC_TIME=Norwegian-Nynorsk_Norway.1252

Search Path:
.GlobalEnv, package:lubridate, package:stats, package:graphics,
package:grDevices, package:utils, package:datasets, package:methods,
Autoloads, package:base

@vspinu vspinu closed this in c11cbfe Dec 13, 2014

@vspinu

This comment has been minimized.

Show comment
Hide comment
@vspinu

vspinu Dec 13, 2014

Member

We were not checking for for validity of POSIXlt names before screwing the lt object. Thanks.

Member

vspinu commented Dec 13, 2014

We were not checking for for validity of POSIXlt names before screwing the lt object. Thanks.

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