Follow the steps outlined in this guide to migrate your project to Rhino 1.10. Before starting, ensure your Git working tree is clean, or back up your project if not using Git.

This guide assumes you are migrating from Rhino 1.9. If you are currently using an older version of Rhino, please review the older migration guides first:

Step 1: Install Rhino 1.10

Use the following command to install Rhino 1.10 and update your renv.lock file:

rhino::pkg_install("rhino@1.10.0")

After the installation, restart your R session to ensure all changes take effect.

Step 2: Update your .Rprofile

Update your .Rprofile with languageserver parsers for box::use, by running:

box.lsp::use_box_lsp()

Restart your R session so changes can take effect

Follow "How-to: Auto-complete in VSCode" guide to enable auto-complete in VSCode or Vim.

Step 3 (optional, requires R >= 4.3): Install treesitter and treesitter.r

To enable automated styling of box::use statements and box.linters::namespace_function_calls() linter, install treesitter and treesitter.r:

rhino::pkg_install(c("treesitter", "treesitter.r"))

Step 4: Test your project

Test your project thoroughly to ensure everything works properly after the migration. If you encounter any issues or have further questions, don't hesitate to reach out to us via GitHub Discussions.



Appsilon/rhino documentation built on Sept. 27, 2024, 7:01 p.m.