To install package from CRAN:
install.packages("lubridate")
To install development version from Github:
library(devtools)
# dev mode allows testing of development packages in a sandbox, without interfering
# with the other packages you have installed.
dev_mode(on=T)
install_github("hadley/lubridate")
dev_mode(on=F)
To get vignettes on lubridate package:
vignette("lubridate")
To get help about some function foo
:
help(foo) # help about function foo
?foo # same thing
# Example
# help("is.period")
# ?is.period
To get examples for a function foo
:
example("foo")
# Example
# example("interval")