This file contains 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
--- | |
title: "Testing rOpenSci katex" | |
author: "Jesus M. Castagnetto, Jeroen Ooms" | |
date: "2021-07-12" | |
output: | |
html_document: | |
mathjax: null | |
--- | |
```{r setup, include=FALSE} |
This file contains 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
/* | |
* A simple libpng example program | |
* http://zarb.org/~gc/html/libpng.html | |
* | |
* Modified by Yoshimasa Niwa to make it much simpler | |
* and support all defined color_type. | |
* | |
* To build, use the next instruction on OS X. | |
* $ brew install libpng | |
* $ clang -lz -lpng15 libpng_test.c |
This file contains 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
# Load in simple statistics | |
library(V8) | |
ct <- new_context("window") | |
ct$source("https://raw.githubusercontent.com/tmcw/simple-statistics/master/src/simple_statistics.js") | |
# Run Regression | |
ct$assign("mydata", cbind(mtcars$wt, mtcars$mpg)) | |
ct$eval("var lm = ss.linear_regression().data(mydata)") | |
ct$get("[ lm.b(), lm.m() ]") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#' @useDynLib nameOfPackage C_escape_chars | |
deparse_vector3 <- function(x) { | |
.Call(C_escape_chars, x) | |
} |