From 3528a00b137eb3706fe409b67ad0c6feb7a64554 Mon Sep 17 00:00:00 2001 From: AcuGIS Date: Tue, 22 Oct 2024 17:06:26 +0000 Subject: [PATCH] Update docs/source/r.rst --- docs/source/r.rst | 83 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/docs/source/r.rst b/docs/source/r.rst index c1baf73..a38d6a6 100644 --- a/docs/source/r.rst +++ b/docs/source/r.rst @@ -205,7 +205,7 @@ The output should look at below: -R Plotly Dynamic Data +R Plotly Dynamic Data (PostgreSQL) =================================== To create an R Plotyl App with Dynamic Data, click on "Add New" button. @@ -330,6 +330,87 @@ An example of a Standard Plot (PNG) is included in the installation. +R Report (RMD) +=================================== + +To create an R Report App, click on "Add New" button. + + .. image:: images/Add-Map.png + + +FTP, Upload, or Paste your code. + +Give your R code a Name and Description. + + +Example +-------------- + +The Demo Data contains a full R Report. + +It is the "My Super Fancy Report" created by David Keyes + +https://rfortherestofus.github.io/fundamentals/sample-report.html + +.. code-block:: R + + --- + title: "My Super Fancy Report" + author: "David Keyes" + output: html_document + --- + + ```{r setup, include=FALSE} + knitr::opts_chunk$set(echo = FALSE) + ``` + + + # Introduction + + This report is the best report ever. Pretty much the **bees' knees**. Can't say that I've *ever* seen a better report. + + ## Reasons Why This Report is the Best + + - It's amazing + - It's quite amazing + - It's seriously amazing + + ## R Markdown + + This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see . + + When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: + + ```{r cars, include = FALSE} + summary(cars) + ``` + + ## Including Plots + + You can also embed plots, for example: + + ```{r pressure, echo=FALSE} + plot(pressure) + ``` + + + Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. + + + ```{r warning = FALSE, message = FALSE} + library(skimr) + + skim(cars) + ``` + +The output should look at below: + + + .. image:: images/r-report.png + + + + R App Options ===================================