Skip to content

Instantly share code, notes, and snippets.

View jsierles's full-sized avatar
🎯
Focusing

Joshua Sierles jsierles

🎯
Focusing
View GitHub Profile
(define-module (nextjournal packages r)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system r)
#:use-module (gnu packages image)
#:use-module (gnu packages algebra)
The following package will be installed:
r-lubridate 1.7.1 /gnu/store/a3mq6s5j87m7xy0r0h9fn027gsx56lfm-r-lubridate-1.7.1
spurious SIGPOLL
spurious SIGPOLL
guix package: error: profile contains conflicting entries for r-rcpp
guix package: error: first entry: r-rcpp@0.12.14 /gnu/store/00x11qjy7ca8w79z8y5yd6ig3scgw3dw-r-rcpp-0.12.14
guix package: error: ... propagated from r-lubridate@1.7.1
guix package: error: second entry: r-rcpp@0.12.14 /gnu/store/ln79b0ymlymn0l6k14780qphcfwfyld9-r-rcpp-0.12.14
@jsierles
jsierles / r.scm
Last active February 13, 2018 20:30
(define-module (nextjournal packages r)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system r)
#:use-module (gnu packages image)
#:use-module (gnu packages algebra)
Fix a build bug that would cause the linker to try linking against
'arrow_static' even when building with -DARROW_BUILD_STATIC=off:
https://issues.apache.org/jira/browse/ARROW-1308
Patch copied from upstream pull request:
https://github.com/apache/arrow/pull/931/commits/88391fe0685742cff489d0bf1a5b1a09b8d73b3b
From 88391fe0685742cff489d0bf1a5b1a09b8d73b3b Mon Sep 17 00:00:00 2001
@jsierles
jsierles / compression.scm
Created February 12, 2018 18:40
Guix module for google-brotli
(define-module (nextjournal packages compression)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system cmake))
(define-public google-brotli
(package
(name "google-brotli")
(version "0.6.0")
@jsierles
jsierles / python.scm
Last active February 12, 2018 18:43
Custom modules for apache-arrow and feather support in Guix
(define-module (nextjournal packages python)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (nextjournal packages compression)
# setting up the layout of matplotlib figure
fig, ax = plt.subplots()
# use the distplot function from seaborn to plot the distribution of AAPL
sns.distplot(AAPL['Daily Return'].dropna(), color = 'indianred',
hist_kws=dict(alpha = 0.7))
# remove the plot borders
sns.despine()
core@agent-3-production ~ $ sudo cat /var/lib/docker/containers/bbade0b6f31f614029f93b1e4ac84e2deb59918fbf02d45643a39fec59245438/checkpoints/r-2840-NRXJT7BG3B7MFLDBCMRV-Libraries/criu.work/restore-2017-08-11T14:08:45.480917875Z/restore.log
(00.000462) Pagemap is fully functional
(00.000508) Found task size of 7ffffffff000
(00.013771) Found fd 0 (id pipe:[18293297]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013900) Inherit fd 0 moved to 9 to resolve clash
(00.013912) Found fd 1 (id pipe:[18293298]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013917) Inherit fd 1 moved to 6 to resolve clash
(00.013923) Found fd 2 (id pipe:[18293299]) in inherit fd list (caller inherit_fd_resolve_clash)
(00.013927) Inherit fd 2 moved to 8 to resolve clash
(00.065090) Adjust mmap_min_addr 0x1000 -> 0x10000
build-staging core # guix weather --substitute-urls=http://localhost:8090
computing 5762 package derivations for x86_64-linux...
looking for 6004 store items on http://localhost:8090...###################################################################################]
updating list of substitutes from 'http://localhost:8090'... 100.0%
http://localhost:8090
5.2% substitutes available (310 out of 6004)
unknown substitute sizes
2630.4 MiB on disk (uncompressed)
0.006 seconds per request (33.4 seconds in total)
180.0 requests per second
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0' failed: 504, "Gateway Time-out"
Downloading https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-dplyr-0.5.0...
guix substitute: error: download from 'https://mirror.hydra.gnu.org/guix/nar/gzip/yyyqfaffl21ydzkr0zz72lipwd1wc9s7-r-d