Bring some sanity to R when working with Python via reticulate
A set of utilities and helpers that make using Python via reiculate
a bit saner.
See https://rud.is/b/2018/08/04/digging-into-mbox-details-a-tale-of-tm-reticulate/ for some functionality or look at the examples in the manual pages.
The following functions are implemented:
Structure inspection helpers:
pystr
: Compactly Display the Structure of a Python objectpynames
: (All) The Names of a Python ObjectStrong helpers:
get_chr
: Retrieve a value from a Python 'dict' as a characterutf8_decode
: Decode a Python structure and retrieve a UTF-8 encoded value from itDocumentation helpers:
py_doc
: Use built-in 'pydoc' to get the Python HTML manual page for a given objectreadthedocs
: Use "Read the Docs" to get help on a Python module/objectGeneral Utility:
%|0|%
: Default value for an object length being 0devtools::install_git("https://gitlab.com/hrbrmstr/sanipy.git") # or devtools::install_github("hrbrmstr/sanipy")
options(width=120)
library(sanipy) # current verison packageVersion("sanipy")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.