MyNixOS website logo
Description

Library Snapshot for Packages and Dependencies in Use by Current Session.

Generate a local library copy with relevant packages. All packages currently found within the search path - except base packages - will be copied to the directory provided and can be used later on with the .libPaths() function.

Library Snapshots for Current Packages in Use

Status

lines of R code: 121, lines of test code: 19

Codecov

Development version

0.1.0 - 2018-02-07 / 19:45:52

Description

Generate a local library copy with relevant packages. All packages currently found within the search path - except base packages - will be copied to the directory provided and can be used later on with the ‘.libPaths()’ function.

License

MIT + file LICENSE
Peter Meissner [aut, cre]

Citation

citation("librarysnapshot")

BibTex for citing

toBibtex(citation("librarysnapshot"))

Contribution - AKA The-Think-Twice-Be-Nice-Rule

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms:

As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.

Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the Contributor Covenant (http://contributor-covenant.org), version 1.0.0, available at http://contributor-covenant.org/version/1/0/0/

Installation

Installation and start - stable version

install.packages("librarysnapshot")
library(librarysnapshot)

Installation and start - development version

devtools::install_github("petermeissner/librarysnapshot")
library(librarysnapshot)

Example Usage

library(librarysnapshot)

sessionInfo()
## R version 3.4.3 (2017-11-30)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 16299)
## 
## Matrix products: default
## 
## locale:
## [1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
## [4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] librarysnapshot_0.1.0
## 
## loaded via a namespace (and not attached):
##  [1] compiler_3.4.3  backports_1.1.2 magrittr_1.5    rprojroot_1.3-2 tools_3.4.3     htmltools_0.3.6
##  [7] yaml_2.1.16     Rcpp_0.12.15    stringi_1.1.6   rmarkdown_1.8   knitr_1.19      stringr_1.2.0  
## [13] digest_0.6.15   evaluate_0.10.1

path     <- paste(tempdir(), "rlib", sep="/")
snapshot <- library_snapshot(path = path)
## ..................

snapshot[, c("Package", "Version", "Depends", "Imports")]
##                         Package Version       Depends
## backports             backports   1.1.2  R (>= 3.0.0)
## base64enc             base64enc   0.1-3  R (>= 2.9.0)
## digest                   digest  0.6.15  R (>= 2.4.1)
## evaluate               evaluate  0.10.1  R (>= 3.0.2)
## highr                     highr     0.6  R (>= 3.0.2)
## htmltools             htmltools   0.3.6 R (>= 2.14.1)
## jsonlite               jsonlite     1.5       methods
## knitr                     knitr    1.19  R (>= 3.1.0)
## librarysnapshot librarysnapshot   0.1.0          <NA>
## magrittr               magrittr     1.5          <NA>
## markdown               markdown     0.8 R (>= 2.11.1)
## mime                       mime     0.5          <NA>
## Rcpp                       Rcpp 0.12.15  R (>= 3.0.0)
## rmarkdown             rmarkdown     1.8    R (>= 3.0)
## rprojroot             rprojroot   1.3-2  R (>= 3.0.0)
## stringi                 stringi   1.1.6   R (>= 2.14)
## stringr                 stringr   1.2.0   R (>= 2.14)
## yaml                       yaml  2.1.16          <NA>
##                                                                                                                                                                      Imports
## backports                                                                                                                                                              utils
## base64enc                                                                                                                                                               <NA>
## digest                                                                                                                                                                  <NA>
## evaluate                                                                                                                                         methods, stringr (>= 0.6.2)
## highr                                                                                                                                                                   <NA>
## htmltools                                                                                                                                                utils, digest, Rcpp
## jsonlite                                                                                                                                                                <NA>
## knitr                                                                                           evaluate (>= 0.10), highr, markdown, stringr (>= 0.6), yaml,\nmethods, tools
## librarysnapshot                                                                                                                                                        utils
## magrittr                                                                                                                                                                <NA>
## markdown                                                                                                                                                utils, mime (>= 0.3)
## mime                                                                                                                                                                   tools
## Rcpp                                                                                                                                                          methods, utils
## rmarkdown       tools, utils, knitr (>= 1.14), yaml (>= 2.1.5), htmltools (>=\n0.3.5), evaluate (>= 0.8), base64enc, jsonlite, rprojroot,\nmime, methods, stringr (>= 1.2.0)
## rprojroot                                                                                                                                                          backports
## stringi                                                                                                                                                tools,\nutils,\nstats
## stringr                                                                                                                                         stringi (>= 0.4.1), magrittr
## yaml                                                                                                                                                                    <NA>

list.files(path)
##  [1] "backports"       "base64enc"       "digest"          "evaluate"        "highr"          
##  [6] "htmltools"       "jsonlite"        "knitr"           "librarysnapshot" "magrittr"       
## [11] "markdown"        "mime"            "Rcpp"            "rmarkdown"       "rprojroot"      
## [16] "stringi"         "stringr"         "yaml"
Metadata

Version

0.1.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows