Update docs/source/r.rst

This commit is contained in:
AcuGIS 2024-10-22 17:06:26 +00:00
parent b125e668fa
commit 3528a00b13
1 changed files with 82 additions and 1 deletions

View File

@ -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. 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 <http://rmarkdown.rstudio.com>.
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 R App Options
=================================== ===================================