From 1084939d59c17416a572741dd386aaa8efb11487 Mon Sep 17 00:00:00 2001 From: "Andrew G. Brown" Date: Wed, 20 Jan 2021 23:38:34 -0800 Subject: [PATCH] auto-readme: knitr::imgur_upload; upload all images to imgur.com --- README.Rmd | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.Rmd b/README.Rmd index a6427433..a6bb10ea 100644 --- a/README.Rmd +++ b/README.Rmd @@ -109,11 +109,10 @@ remotes::install_github("ncss-tech/soilDB", dependencies = FALSE, upgrade = FALS ## Examples ```{r setup, warning = FALSE, message = FALSE, include = FALSE} +knitr::opts_knit$set(upload.fun = knitr::imgur_upload, base.url = NULL) knitr::opts_chunk$set(warning = FALSE, message = FALSE, fig.width = 14, fig.height = 8, - fig.path = ".github/images/", fig.retina = 3) - ``` ### Load Soil Packages @@ -186,13 +185,6 @@ SoilTaxonomyDendrogram( ) ``` -```{r include=FALSE} -if (!dir.exists("docs/.github/images/")) - dir.create("docs/.github/images/", recursive = TRUE) - -file.copy(list.files(path = ".github/images/", "png", full.names = TRUE), "docs/.github/images/") -``` - ## Dependency Graph ![](https://cran.microsoft.com/packagedata/graphs/soilDB.png)