Skip to content

Add R support documentation#1227

Merged
nrichers merged 5 commits intomainfrom
nrichers/sc-15262/add-r-support-documentation
Mar 23, 2026
Merged

Add R support documentation#1227
nrichers merged 5 commits intomainfrom
nrichers/sc-15262/add-r-support-documentation

Conversation

@nrichers
Copy link
Copy Markdown
Collaborator

@nrichers nrichers commented Mar 20, 2026

Pull Request Description

What and why?

Adds a page to our developer docs for using the ValidMind R package to document and validate models built in R.

New file created:

  • site/developer/model-documentation/install-and-initialize-validmind-for-r.qmd — Full installation and quickstart guide for R users

Files updated:

  • site/developer/_sidebar.yaml — Added new R page to navigation after the Python install page

Documentation covers:

  • Prerequisites (ValidMind account, model registration)
  • Installing R (tabset for macOS, Windows, Linux)
  • Installing Python dependencies (validmind, rpy2) with macOS troubleshooting
  • Installing required R packages
  • Installing the ValidMind R package (CRAN, GitHub, source options)
  • Initializing ValidMind with the vm() function
  • Key APIs via reticulate (init_dataset, init_r_model, run_documentation_tests, etc.)
  • Troubleshooting (libc++ and Numba issues on macOS)
  • Links to R quickstart notebooks on GitHub

Addresses sc-15262.

How to test

Try the live preview: Install and initialize ValidMind for R

image

What needs special review?

  • Accuracy of R installation commands across platforms
  • External GitHub links to R quickstart notebooks

Dependencies, breaking changes, and deployment notes

None — this is new documentation.

Release notes

Added documentation for the ValidMind R package, enabling R users to document and validate models using the ValidMind Library. Learn more

Checklist

  • What and why
  • How to test
  • PR linked to Shortcut
  • Labels applied
  • Tested locally
  • Documentation updated

@nrichers nrichers added the documentation Improvements or additions to documentation label Mar 20, 2026
@nrichers nrichers requested review from cachafla and validbeck March 20, 2026 16:20
Copy link
Copy Markdown
Collaborator

@validbeck validbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my perspective (you may want Andres to confirm the content). Just made a quick adjustment to clean up the sidebar:

Image

@github-actions
Copy link
Copy Markdown
Contributor

PR Summary

This pull request introduces two main changes:

  1. The sidebar navigation configuration has been updated. A new section titled "Install and initialize ValidMind" has been added. This section now includes two links: one for installing and initializing the library for general use and another specifically for R. The change addresses mobile view issues and breadcrumb compatibility by replacing the previous text variable with a more structured section format.

  2. A new documentation file, install-and-initialize-validmind-for-r.qmd, has been added. This file provides detailed, step-by-step instructions for R users on how to install R, Python dependencies (including instructions for handling potential issues with rpy2), necessary R packages, and the ValidMind R package. It also explains how to initialize the ValidMind session in R, call Python APIs via reticulate, and troubleshoot common issues. The document offers guidance on setup, installation from various sources (CRAN, GitHub, source), and additional instructions for model documentation and validation workflows.

Test Suggestions

  • Manually verify that the sidebar now displays a dedicated section for initializing ValidMind with two proper links, and check that the mobile view no longer breaks the layout.
  • Review the generated documentation page for R to ensure that code blocks, installation instructions, and tabs (for different OS setups) render correctly.
  • Test the installation steps documented (both Python and R sections) in a controlled environment to confirm that the commands and instructions produce the expected results.
  • Check the internal links and references (such as the link to the API host and other variable references) to ensure they resolve correctly within the documentation site.

@github-actions
Copy link
Copy Markdown
Contributor

Validate docs site

✓ INFO: A live preview of the docs site is available — Open the preview

@nrichers nrichers merged commit 8cdaf9a into main Mar 23, 2026
6 of 8 checks passed
@nrichers nrichers deleted the nrichers/sc-15262/add-r-support-documentation branch March 23, 2026 18:22
nrichers added a commit that referenced this pull request Mar 24, 2026
* Expand custom artifact type content

* Add margin footnote link

* Change to definition list

* Edits

* docs: Organization wide default tracking changes in content blocks  (#1202)

* Edit: Managing your organization

* WIP: Collaborate with others > Tracking changes

* Edit: Collaborate with others > Tracking changes

* Proofread

* docs: Insert inventory & artifact field values as variables into documents & library blocks (#1207)

* Save point

* Save point

* Work with content blocks > Reference field values

* Single-source prep

* Editing

* Save point

* Save point

* Save point

* Edit

* Editing...

* New content editing toolbar image

* Missing copyrights

* docs: Individual model inventory field activity (#1206)

* WIP: View model activity > Filter all model activity

* Save point

* View model activity: View individual model field activity

* Save point

* Save point

* Save point

* Proofreading

* Proofreading again

* Typo

* Update site/guide/model-inventory/edit-model-inventory-fields.qmd

Co-authored-by: Nik Richers <nik@validmind.ai>

* Fixing numbering

* Fixing indenting

---------

Co-authored-by: Nik Richers <nik@validmind.ai>

* feat: docs pipeline to render markdown

* feat: bump quarto to pre-release

* chore: run llm gen at the end so we don't delay pr previews

* LUA filter + Pandoc post-processing experiment

* docs: 'document' parameter in `vm.init()` for model document target (#1211)

* WIP

* Save point

* Save point

* Save point

* Edit: Install & initialize the ValidMind Library

* Cursor WIP

* Save point

* Save point

* Save point

* Save point

* Save point

* Store model credentials in env files

* What's next

* Updating notebook listing scripts for page-size: 4

* Save point

* Quick edit

* One more

* and another

* Hang on forgot training stuff

* Updated get started

* Updated enable monitoring

* Training updated

* copyright

* Missed a module

* feat: make llm publishing slimmer- no release no installation no library

* chore: put vm-library llm docs back

* Switch to sparse checkout for some repos

* fix: errors in publish llm gha

* chore: handle the case where branch name is not main or prod, for instance when testing

* Add "Quick reference" section to test overview page (#1205)

* Add key concepts section to test overview page

* Make section a callout, change to quick reference

* Save point for graphviz

* Some graphviz tweaks

* A few more tweaks

* Fill colour tweak

* Document vm_today and datetime support in calculated fields (#1167)

* Document vm_today and datetime support in calculated fields

Add collapsible example for date arithmetic in model inventory
calculation fields: vm_today, date, datetime, timedelta, relativedelta.
Includes next review date and days-remaining countdown examples.
Notes timestamp input and string output behavior.

[sc-7465]

* Fix whitespace

* Fix heading level and move inventory field types up one section

* Add screenshots, edits after testing

* Save point before moving content

* Move into its own file and relocate

* Better intro

* Restore better vm_today example

* Edits

* Minor text reschuffle

* Mention fields by name

* Move field types reference content below prequisites and bump to h2

* Fix example casing

* Consistency edit

* Rename and restructure Supported Models page (#1163)

* Rename and restructure Supported Models page

- Rename supported-models.qmd to supported-model-frameworks.qmd
- Add alias for old URL to preserve links
- Restructure content into clearer sections:
  - Framework support with wrapper classes and install commands
  - Test input requirements (predict vs predict_proba)
  - Custom model wrappers (FunctionModel, PipelineModel)
  - GenAI and LLM support
  - RAG evaluation with RAGAS
  - Python and dependency compatibility
- Add Mermaid diagrams for class hierarchy and test input flow
- Update references in faq-integrations.qmd and overview-model-documentation.qmd

* Fix missed sidebar update

* Fix broken link

* Add bridging sentence after callout

* Re-add a what does supported mean heading

* Minor edit

* Re-add some old goodness

* Much better detail

* Edits

* More edits

* Edits

* Remove old supported models page

* Minor edit

* Edits

* File rename again

* Remove duplicated embeddings content

* Uncomment and move info about tests for text-generating models

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Switch to definition list after removing lead-in text for bulleted list

* Two columns for a neater layout

* Remove pointless link

* Add links, text edits

* Update site/developer/supported-models-and-frameworks.qmd

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Whitespace

* Address review comment from Juan

* Remove links I'd added

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* docs: Updated document type names (#1224)

* WIP

* WIP

* Editing validation report template def

* Edit...

* Glossary / about updated

* FAQ updated

* Quickstart -screenshots updated

* Work with test results done

* Enable monitoring done

* Review monitoring results done

* Work with metrics over time done

* save point

* save point

* Editing Export documents

* Export documents done

* Glossary proofreading

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Edit Manage document types

* Edit Manage model documents

* Edit Customize document templates

* Edit Manage document templates

* Edit Export documents

* Edit

* Edit

* Quickstart - Register a model

* Quickstart - Select a template

* Quickstart - Work with {document}

* Proofread

* Pulling in latest notebooks

* Removing unused page

* Removing backup screenshots

* Revert "Removing unused page"

This reverts commit 9a710fd.

* Revering a change that didn't make sense

* Updating notebooks again

* edit

* docs: Delete and archive artifact types (#1228)

* WIP

* WIP

* Edit: Manage artifact types

* Edit

* Edit after Slack convo

* Add R support documentation (#1227)

* Initial draft

* Add more install info

* Add quickstarts

* Grouping install & initalize in sidebar

* Silly sidebar variable quirk

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Switch to RELEASE_NOTES_RO_PAT for installation repo (#1231)

* Fix CI hang: Don't try to render Graphviz diagrams with GFM (#1230)

* Add pandoc install step

* Try chromium install since stuff renders fine locally

* Switch to RELEASE_NOTES_RO_PAT for installation repo

* Try images instead of Graphviz

* Add render-llm make action for local testing

* Remove Chromium install steps

* BG transparency

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>

* Add auto-generated template schema documentation (#1166)

* Add auto-generated template schema documentation

- Create generate_template_schema_docs.py script to generate HTML schema
  docs from backend JSON Schema using json-schema-for-humans
- Update customize-document-templates.qmd to use generated include
- Add template schema and permissions documentation sections to README.md

The template schema is now regenerated from the v5 JSON schema in the
backend repo, replacing the outdated hardcoded HTML.

Closes sc-6164

* Switch to {html} codeblock, move styles into separate file, style tweaks

* Fixed whitespace issue and added rounded corners

* Fix heading level

* Delete generated template schema file

* Add make action and move template schema docs generation into workflows

* Minor edit

* Fix style for No Additional Items badges

* Kibosh wayward ellipsis

* Remove permissions documentation section from my other PR

* Strip out schema doc CSS that causes issues, style tweaks

* Move expand and collapse buttons above first accordion

* Smidgen of whitespace before embed

* Add README.md section of required repos, remove old R info

* Temporarily add Andres' branch ref

* Switch to new UI schema JSON

* Remove temporary branch ref

* docs: Export analytics (#1225)

* Setup: Export analytics

* WIP

* edit

* Proofreading

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Spencer Krum <nibz@validmind.ai>
nrichers added a commit that referenced this pull request Mar 25, 2026
* Expand custom artifact type content

* Add margin footnote link

* Change to definition list

* Edits

* docs: Organization wide default tracking changes in content blocks  (#1202)

* Edit: Managing your organization

* WIP: Collaborate with others > Tracking changes

* Edit: Collaborate with others > Tracking changes

* Proofread

* docs: Insert inventory & artifact field values as variables into documents & library blocks (#1207)

* Save point

* Save point

* Work with content blocks > Reference field values

* Single-source prep

* Editing

* Save point

* Save point

* Save point

* Edit

* Editing...

* New content editing toolbar image

* Missing copyrights

* docs: Individual model inventory field activity (#1206)

* WIP: View model activity > Filter all model activity

* Save point

* View model activity: View individual model field activity

* Save point

* Save point

* Save point

* Proofreading

* Proofreading again

* Typo

* Update site/guide/model-inventory/edit-model-inventory-fields.qmd



* Fixing numbering

* Fixing indenting

---------



* feat: docs pipeline to render markdown

* feat: bump quarto to pre-release

* chore: run llm gen at the end so we don't delay pr previews

* LUA filter + Pandoc post-processing experiment

* docs: 'document' parameter in `vm.init()` for model document target (#1211)

* WIP

* Save point

* Save point

* Save point

* Edit: Install & initialize the ValidMind Library

* Cursor WIP

* Save point

* Save point

* Save point

* Save point

* Save point

* Store model credentials in env files

* What's next

* Updating notebook listing scripts for page-size: 4

* Save point

* Quick edit

* One more

* and another

* Hang on forgot training stuff

* Updated get started

* Updated enable monitoring

* Training updated

* copyright

* Missed a module

* feat: make llm publishing slimmer- no release no installation no library

* chore: put vm-library llm docs back

* Switch to sparse checkout for some repos

* fix: errors in publish llm gha

* chore: handle the case where branch name is not main or prod, for instance when testing

* Add "Quick reference" section to test overview page (#1205)

* Add key concepts section to test overview page

* Make section a callout, change to quick reference

* Save point for graphviz

* Some graphviz tweaks

* A few more tweaks

* Fill colour tweak

* Document vm_today and datetime support in calculated fields (#1167)

* Document vm_today and datetime support in calculated fields

Add collapsible example for date arithmetic in model inventory
calculation fields: vm_today, date, datetime, timedelta, relativedelta.
Includes next review date and days-remaining countdown examples.
Notes timestamp input and string output behavior.

[sc-7465]

* Fix whitespace

* Fix heading level and move inventory field types up one section

* Add screenshots, edits after testing

* Save point before moving content

* Move into its own file and relocate

* Better intro

* Restore better vm_today example

* Edits

* Minor text reschuffle

* Mention fields by name

* Move field types reference content below prequisites and bump to h2

* Fix example casing

* Consistency edit

* Rename and restructure Supported Models page (#1163)

* Rename and restructure Supported Models page

- Rename supported-models.qmd to supported-model-frameworks.qmd
- Add alias for old URL to preserve links
- Restructure content into clearer sections:
  - Framework support with wrapper classes and install commands
  - Test input requirements (predict vs predict_proba)
  - Custom model wrappers (FunctionModel, PipelineModel)
  - GenAI and LLM support
  - RAG evaluation with RAGAS
  - Python and dependency compatibility
- Add Mermaid diagrams for class hierarchy and test input flow
- Update references in faq-integrations.qmd and overview-model-documentation.qmd

* Fix missed sidebar update

* Fix broken link

* Add bridging sentence after callout

* Re-add a what does supported mean heading

* Minor edit

* Re-add some old goodness

* Much better detail

* Edits

* More edits

* Edits

* Remove old supported models page

* Minor edit

* Edits

* File rename again

* Remove duplicated embeddings content

* Uncomment and move info about tests for text-generating models

* Update site/developer/supported-models-and-frameworks.qmd



* Update site/developer/supported-models-and-frameworks.qmd



* Update site/developer/supported-models-and-frameworks.qmd



* Update site/developer/supported-models-and-frameworks.qmd



* Update site/developer/supported-models-and-frameworks.qmd



* Switch to definition list after removing lead-in text for bulleted list

* Two columns for a neater layout

* Remove pointless link

* Add links, text edits

* Update site/developer/supported-models-and-frameworks.qmd



* Whitespace

* Address review comment from Juan

* Remove links I'd added

---------



* docs: Updated document type names (#1224)

* WIP

* WIP

* Editing validation report template def

* Edit...

* Glossary / about updated

* FAQ updated

* Quickstart -screenshots updated

* Work with test results done

* Enable monitoring done

* Review monitoring results done

* Work with metrics over time done

* save point

* save point

* Editing Export documents

* Export documents done

* Glossary proofreading

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Save point

* Edit Manage document types

* Edit Manage model documents

* Edit Customize document templates

* Edit Manage document templates

* Edit Export documents

* Edit

* Edit

* Quickstart - Register a model

* Quickstart - Select a template

* Quickstart - Work with {document}

* Proofread

* Pulling in latest notebooks

* Removing unused page

* Removing backup screenshots

* Revert "Removing unused page"

This reverts commit 9a710fd.

* Revering a change that didn't make sense

* Updating notebooks again

* edit

* docs: Delete and archive artifact types (#1228)

* WIP

* WIP

* Edit: Manage artifact types

* Edit

* Edit after Slack convo

* Add R support documentation (#1227)

* Initial draft

* Add more install info

* Add quickstarts

* Grouping install & initalize in sidebar

* Silly sidebar variable quirk

---------



* Switch to RELEASE_NOTES_RO_PAT for installation repo (#1231)

* Fix CI hang: Don't try to render Graphviz diagrams with GFM (#1230)

* Add pandoc install step

* Try chromium install since stuff renders fine locally

* Switch to RELEASE_NOTES_RO_PAT for installation repo

* Try images instead of Graphviz

* Add render-llm make action for local testing

* Remove Chromium install steps

* BG transparency

---------



* Add auto-generated template schema documentation (#1166)

* Add auto-generated template schema documentation

- Create generate_template_schema_docs.py script to generate HTML schema
  docs from backend JSON Schema using json-schema-for-humans
- Update customize-document-templates.qmd to use generated include
- Add template schema and permissions documentation sections to README.md

The template schema is now regenerated from the v5 JSON schema in the
backend repo, replacing the outdated hardcoded HTML.

Closes sc-6164

* Switch to {html} codeblock, move styles into separate file, style tweaks

* Fixed whitespace issue and added rounded corners

* Fix heading level

* Delete generated template schema file

* Add make action and move template schema docs generation into workflows

* Minor edit

* Fix style for No Additional Items badges

* Kibosh wayward ellipsis

* Remove permissions documentation section from my other PR

* Strip out schema doc CSS that causes issues, style tweaks

* Move expand and collapse buttons above first accordion

* Smidgen of whitespace before embed

* Add README.md section of required repos, remove old R info

* Temporarily add Andres' branch ref

* Switch to new UI schema JSON

* Remove temporary branch ref

* docs: Export analytics (#1225)

* Setup: Export analytics

* WIP

* edit

* Proofreading

---------

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Spencer Krum <nibz@validmind.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants