Package: soils 1.0.1.9000

Jadey N Ryan

soils: Visualize and Report Soil Health Data

Collection of soil health data visualization and reporting tools, including a RStudio project template with everything you need to generate custom HTML and Microsoft Word reports for each participant in your soil health sampling project.

Authors:Jadey N Ryan [cre, aut], Molly McIlquham [aut], Kwabena A Sarpong [aut], Leslie M Michel [aut], Teal S Potter [aut], Deirdre Griffin LaHue [aut], Dani L Gelardi [aut], Washington State Department of Agriculture [cph, fnd]

soils_1.0.1.9000.tar.gz
soils_1.0.1.9000.zip(r-4.7)soils_1.0.1.9000.zip(r-4.6)soils_1.0.1.9000.zip(r-4.5)
soils_1.0.1.9000.tgz(r-4.6-any)soils_1.0.1.9000.tgz(r-4.5-any)
soils_1.0.1.9000.tar.gz(r-4.7-any)soils_1.0.1.9000.tar.gz(r-4.6-any)
soils_1.0.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
soils/json (API)

# Install 'soils' in R:
install.packages('soils', repos = c('https://wa-department-of-agriculture.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/wa-department-of-agriculture/soils/issues

Pkgdown/docs site:https://wa-department-of-agriculture.github.io

Datasets:

On CRAN:

Conda:

quarto

6.03 score 17 stars 14 scripts 29 exports 114 dependencies

Last updated from:139c7e04a3. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK170
source / vignettesOK232
linux-release-x86_64OK191
macos-release-arm64OK239
macos-oldrel-arm64OK284
windows-develOK149
windows-releaseOK151
windows-oldrelOK133
wasm-releaseOK193

Exports:add_field_count_noteadd_legendadd_texture_pointscalculate_modeclassify_textureconvert_ggiraphconvert_to_numericcreate_soilsformat_ft_colorsget_n_texture_by_varget_table_headershas_complete_rowis_column_emptymake_ftmake_interactive_mapmake_leafletmake_static_mapmake_strip_plotmake_texture_triangleprep_for_mappull_uniqueset_scalessoils_examplestyle_ftsummarize_by_projectsummarize_by_varsync_dictionary_texturetheme_facet_stripunit_hline

Dependencies:askpassbase64encbslibcachemclassclassIntclicliprcommonmarkcpp11crayoncredentialscrosstalkcurldata.tableDBIdescdigestdplyre1071evaluatefarverfastmapflextablefontawesomefontBitstreamVerafontLiberationfontquiverfsgdtoolsgenericsgertggiraphggplot2ggrepelggtextgitcredsgluegridtextgtablehighrhtmltoolshtmlwidgetshttr2iniisobandjpegjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevalleafletleaflet.providerslifecyclelitedownmagrittrmaptilesmarkdownMASSmemoisemimeofficeropensslpillarpkgconfigpngprocessxproxypspurrrquartoR6raggrappdirsrasterRColorBrewerRcpprlangrmarkdownrprojrootrstudioapis2S7sassscalessfspstringistringrsyssystemfontsterratextshapingtibbletidyrtidyselecttinytexunitsusethisutf8uuidvctrsviridisLitewhiskerwithrwkxfunxml2yamlzip

Import your data
Access the example datasets | Data template | Metadata (columns A–I: year through longitude) | Measurement results (columns J–AO: texture through na_mg_kg) | Dictionary template | Load your data into the template | load-data chunk | load-dictionary chunk | tidy-long chunk

Last update: 2026-02-18
Started: 2024-02-16

Markdown
Text formatting | Headings | Links & images | Lists | Tables | Markdown syntax | Output | Blocks | Special characters

Last update: 2025-02-05
Started: 2024-02-16

Troubleshoot
What to do when the report fails to render? | R code issues | Quarto document issues | Environment issues | Common errors | Invalid parameter values | Duplicate chunk labels | create-measurement-group-sections chunk | Error when run interactively | Error when report rendered | Get help

Last update: 2024-10-10
Started: 2024-02-16

Create a {soils} project
Option 1. RStudio project wizard | Option 2. RStudio console | Project structure

Last update: 2024-09-24
Started: 2023-09-01

Example reports
HTML | English | Spanish | MS Word

Last update: 2024-09-24
Started: 2024-02-16

Quarto
File paths | Absolute vs relative paths | {here} package | Parameterized reporting | Quarto specific features | Shortcodes | Pagebreak | Include | knitr::knit_child() | Divs and spans | Divs | Spans | Conditional Content | Tabsets

Last update: 2024-03-03
Started: 2024-02-16

Customize & write
Report metadata and options | Report content | Style and theme | set-fonts-colors chunk | Style sheets | HTML | MS Word

Last update: 2024-03-02
Started: 2024-02-16

Render the example reports

Last update: 2024-02-27
Started: 2024-02-16

Render your reports
Using RStudio | Using render_reports.R | Video demo of render-reports.R

Last update: 2024-02-27
Started: 2024-02-16

Readme and manuals

Help Manual

Help pageTopics
Add field count footnote to a flextableadd_field_count_note
Add a legend to the texture triangleadd_legend
Add points to texture triangleadd_texture_points
Calculate the mode of a categorical variablecalculate_mode
Classify USDA soil texture from particle-size fractionsclassify_texture
Convert a 'ggplot2' plot to an interactive 'ggiraph'convert_ggiraph
Convert measurement columns to numeric and warnconvert_to_numeric
Create a project directory for generating soil health reportscreate_soils
Data dictionarydata_dictionary
Conditional formatting of flextable background cell colorsformat_ft_colors
Calculate number of samples and most frequent texture (deprecated)get_n_texture_by_var
Get table headers for flextableget_table_headers
Check if a data frame has at least one complete row for the specified columnshas_complete_row
Check if a column is emptyis_column_empty
Make a flextable with column names from another dataframemake_ft
Make an interactive map of soil sample locations with 'leaflet'make_interactive_map
Make a static map of soil sample locations with 'ggplot2'make_static_map
Make a facetted strip plotmake_strip_plot
Make a textural class trianglemake_texture_triangle
Prepare data for interactive mappingprep_for_map
Extract unique values from a single column of a data framepull_unique
Define styles for producer's samples versus all samplesset_scales
Get path to example datasoils_example
Style a flextablestyle_ft
Summarize samples across the projectsummarize_by_project
Summarize producer's samples with averages by grouping variablesummarize_by_var
Theme for facetted strip plotstheme_facet_strip
Add bottom border to specific columns in flextableunit_hline
Example WaSHI datawashi_data