If you don't already have them, download and install R https://www.r-project.org/ and RStudio (optional) https://www.rstudio.com/products/rstudio/download/.
To install the soilcarbon package, just run this code in R.
If you are on Windows OS, you need this line: ```{r] install.packages(c("htmltools", "httpuv", "xtable"))
All systems run:
```{r}
install.packages("devtools")
devtools::install_github("powellcenter-soilcarbon/soilcarbon")
(You only need to run install.package(c("htmltools", "httpuv", "xtable")
and install.packages("devtools")
once, but as the soilcarbon is developed you can run devtools::install_github("powellcenter-soilcarbon/soilcarbon")
to get the latest version.)
The fastest and easiest way to interact with the soilcarbon database is through an R shiny app that comes with the soilcarbon pacakge. After you have installed the package, just run this code in R:
shiny::runApp(system.file('shiny', package='soilcarbon'))
In this shiny app, you can plot or download data in the database, and run a quality control check on a datafile you want to submit to the database.
The template file for adding new data to the database can be accessed through the soilcarbon shiny app, or can be downloaded at this link. download template
After you have downloaded the template file and filled it in with data, you must check whether the data file passes the quality control requirements to be added to the databse. Follow these steps:
If you are having trouble understanding the formatting requirements for passing the quality control check, see this list of tips for filling out the template correctly:
If you are still having trouble passing the quality control test, send an email to Grey Monroe (greymonroe @ gmail.com) with a description of your problem, along with the data file and quality control report.
check that top two 'description rows' are present in the datafile
ingest NRCS, translation
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.