docker run -v $(pwd):/R-Binding -it --entrypoint bash r-base
cd /R-Binding/
apt-get update
apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev qpdf
Rscript -e 'install.packages("devtools")' \
-e 'install.packages("knitr")' \
-e 'install.packages("lintr")' \
-e 'install.packages("optparse")' \
-e 'install.packages("rmarkdown")'
Rscript -e 'devtools::test()'
Rscript -e 'devtools::check()'
Rscript -e 'lintr::lint_package()'
for file in $(ls examples/*.R); do echo "Rscript -e \"lintr::lint('$file')\"" >> lint_examples.sh; done
chmod a+x lint_examples.sh
./lint_examples.sh
(cd examples/; Rscript address_similarity.R --key $API_KEY)
(cd examples/; for file in $(ls *.R); do Rscript ${file} --key $API_KEY; done)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.