This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; see cups help page for lots on how to print with lpr and lp | |
;; the below functions assume these options are set | |
(setq pdf-misc-print-program-executable "/usr/bin/lpr" | |
pdf-misc-print-program-args (list "-o sides=two-sided-long-edge")) | |
;;; print-helper -- not enough to make a stand-alone package | |
(require 'dash) | |
;;;###autoload | |
(defun ph--get-list-of-priters () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rcpp.h> | |
using namespace Rcpp; | |
// q is a vector of quantiles to calculate for each column of x | |
// [[Rcpp::export]] | |
NumericMatrix colQuantiles(NumericMatrix x, NumericVector q) { | |
int c = x.ncol(); | |
int r = x.nrow(); | |
int n = q.length(); | |
NumericMatrix out(n, c); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Clean Output of Stan Optimizing Samples | |
#' | |
#' @param optimfit result of call to rstan::optimizing | |
#' @param pars optional character vector of parameters to include | |
#' | |
#' @return list of arrays | |
#' @importFrom stringr str_count | |
#' @importFrom rlang syms | |
#' @importFrom dplyr matches select mutate | |
#' @importFrom tidyr gather separate |