knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(locatexec)
The package aims to allow the localization of external programs such as python, node.js, free office in order to be able to call them from R. The package is very experimental.
library(locatexec) if(is_available("node")) message(node_exec()) if(is_available("chrome")) message(chrome_exec()) if(is_available("python")) message(python_exec()) if(is_available("libreoffice")) message(libreoffice_exec())
This was motivated by the need for tools
similar to rmarkdown::pandoc_available() and rmarkdown::pandoc_exec() but
allowing to locate external programs other than pandoc.
I need to use these programs from R without having heavy dependencies. These functions will mainly be used to automate some visual tests or to improve the documentation of my other packages.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("davidgohel/locatexec")
Packages pagedown is providing find_chrome() for finding "Google Chrome".
If you want to go deeper with R and node.js, I recommand package packer.
If you want to go deeper with R and Python, I recommand package reticulate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.