knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The package nutils contains two kinds of utilities.
Those that I found useful particularly in early debugging 'scaffolding'
catln -- just cat with a newline appended, analogous to python3 print(). Name inspired by venerable Pascal writeln.
showvars -- show variable names and print its type and contents.
A couple of functions that interface with the mac
macopen - open a Mac folder or file in Finder or in the file's default application.
macedit - open a text file in Mac TextEdit app.
You can install the latest commit from GITHUB with:
devtools:install_github("tnearey/nutils")
library(nutils) catln('a',"the banana is in the cupboard") x=1 y="Why not" lst=list('x'=x,'y'=y,fred=data.frame(x=x,y=y,z="Not me")) showvars(x,y,lst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.