Skip to content

Instantly share code, notes, and snippets.

@rkrug
rkrug / test.Rmd
Last active March 27, 2019 15:51
kable table as return from function as character
---
title: "test"
author: "Rainer M Krug"
date: "3/27/2019"
output:
html_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
@rkrug
rkrug / Makefile
Created January 8, 2019 13:19 — forked from halpo/Makefile
Makefile for R Packages
# Makefile for generating R packages.
# 2011 Andrew Redd
#
# Assumes Makefile is in a folder where package contents are in a subfolder pkg.
# Roxygen uses the roxygen2 package, and will run automatically on check and all.
PKG_VERSION=$(shell grep -i ^version pkg/DESCRIPTION | cut -d : -d \ -f 2)
PKG_NAME=$(shell grep -i ^package pkg/DESCRIPTION | cut -d : -d \ -f 2)
R_FILES := $(wildcard pkg/R/*.R)
@rkrug
rkrug / Makefile
Last active November 23, 2018 12:59
## All Rmarkdown files in the working directory
SRCDIR = source
OUTDIR = docs
RMD = $(wildcard $(SRCDIR)/*.Rmd)
# HTML = $(RMD:.Rmd=.html)
TMP = $(RMD:.Rmd=.html)
HTML = ${subst $(SRCDIR),$(OUTDIR),$(TMP)}
@rkrug
rkrug / Makefile
Created August 9, 2018 07:42
Makefile to build html, pdf and docx
## Based on https://github.com/kjhealy/rmd-starter/blob/master/Makefile
## All Rmarkdown files in the working directory
SRC = $(wildcard *.Rmd)
FILES = $(wildcard *_files)
PDFS = $(SRC:.Rmd=.pdf)
HTML = $(SRC:.Rmd=.html)
TEX = $(SRC:.Rmd=.tex)
@rkrug
rkrug / Makefile
Last active October 18, 2017 09:05 — forked from PirateGrunt/Makefile
Basic makefile
####################
# Makefile
# Copyright Brian A. Fannin 2015
# Forked from https://gist.github.com/PirateGrunt/e8ec52fe412f5069f2a0#file-makefile
####################
RDIR = .
DATA_DIR = $(RDIR)/data
GATHER_DIR = $(DATA_DIR)/gather
03:49:35 ~$ brew cask list -1 | xargs -I "{}" brew cask info "{}"
alfred: 3.0.3_694
Alfred
https://www.alfredapp.com/
/usr/local/Caskroom/alfred/3.0.3_694 (267 files, 6.4M)
https://github.com/caskroom/homebrew-cask/blob/master/Casks/alfred.rb
==> Contents
Alfred 3.app (app)
appcleaner: 3.3
AppCleaner
@rkrug
rkrug / # gdal-20 - 2016-06-06_11-35-55.txt
Created June 6, 2016 09:55
gdal-20 (osgeo/osgeo4mac/gdal-20) on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal-20 on Mac OS X 10.11.5
Build date: 2016-06-06 11:35:55
@rkrug
rkrug / # gdal-20 - 2016-06-06_11-35-55.txt
Created June 6, 2016 09:44
gdal-20 (osgeo/osgeo4mac/gdal-20) on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal-20 on Mac OS X 10.11.5
Build date: 2016-06-06 11:35:55
@rkrug
rkrug / # gdal-20 - 2016-05-24_10-47-04.txt
Created May 24, 2016 10:03
gdal-20 (osgeo/osgeo4mac/gdal-20) on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal-20 on Mac OS X 10.11.5
Build date: 2016-05-24 10:47:04
@rkrug
rkrug / gist:e72984c0edcbedff4605
Created December 2, 2015 16:45
Complete squashfs -no-duplicates
03:35:45 /Volumes/SSD$ time mksquashfs /Volumes/simASM/ ./simASM.sqashfs -mem 2G -no-duplicates
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on ./simASM.sqashfs, block size 131072.
[=================================================================================================================================================================================|] 10226940/10226940 100%
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are not removed
Filesystem size 106653429.81 Kbytes (104153.74 Mbytes)
68.60% of uncompressed filesystem size (155469440.08 Kbytes)