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")
#> 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)
#> "x": numeric
#> [1] 1
#> "y": character
#> [1] "Why not"
#> "lst": list
#> $x
#> [1] 1
#>
#> $y
#> [1] "Why not"
#>
#> $fred
#> x y z
#> 1 1 Why not Not me
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.