简体   繁体   中英

R: Installing package from github/version?

I had previously installed haven from CRAN, but then installed haven from Github using

devtools::install_github("hadley/haven")

and wanted to check whether I got the correct version. sessionInfo() says, among other things:

other attached packages:
[1] haven_0.2.0 

However, this is also the version from CRAN. How can I be sure this is the current version from Github?

Use session_info from the devtools package:

> devtools::session_info()
Session info -------------------------------------------------------------------
 setting  value                       
 version  R version 3.1.3 (2015-03-09)
 system   x86_64, linux-gnu           
 ui       X11                         
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       <NA>                        

Packages -----------------------------------------------------------------------
 package    * version date       source                           
 devtools   * 1.7.0   2015-01-17 CRAN (R 3.1.2)                   
 digest     * 0.6.8   2014-12-31 CRAN (R 3.1.2)                   
 pander       0.5.2   2015-04-11 Github (rapporter/pander@f69fe62)
 Rcpp       * 0.11.5  2015-03-06 CRAN (R 3.1.2)                   
 rstudioapi * 0.3.1   2015-04-07 CRAN (R 3.1.3)                   

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM