Skip to content

Instantly share code, notes, and snippets.

@brodieG
Created February 27, 2016 18:48
Show Gist options
  • Save brodieG/6101ada64d917b4b659d to your computer and use it in GitHub Desktop.
Save brodieG/6101ada64d917b4b659d to your computer and use it in GitHub Desktop.
Demonstrate Crayon Binary Package Memoise Bug
ls(all=T)
# character(0)
install.packages("crayon")
# trying URL 'http://cran.r-project.org/bin/macosx/mavericks/contrib/3.2/crayon_1.3.1.tgz'
# Content type 'application/x-gzip' length 604079 bytes (589 KB)
# ==================================================
# downloaded 589 KB
#
#
# The downloaded binary packages are in
# /var/folders/56/qcx6p6f94695mh7ywq9m6z_80000gq/T//Rtmp174V1m/downloaded_packages
str(crayon:::i_num_colors)
# function (...)
# - attr(*, "memoised")= logi TRUE
sessionInfo()
# R version 3.2.2 (2015-08-14)
# Platform: x86_64-apple-darwin13.4.0 (64-bit)
# Running under: OS X 10.9.5 (Mavericks)
#
# locale:
# [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
#
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
#
# loaded via a namespace (and not attached):
# [1] tools_3.2.2 memoise_1.0.0 crayon_1.3.1 digest_0.6.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment