Skip to content

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

@huftis

Description

@huftis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions