ESQlabs R Guidelines
  1. Troubleshooting
  • Welcome
  • Good Practices
  • Guides
    • Style Guide
    • How to ask for help in R
    • Git and GitHub for collaboration
    • Advanced Topics
  • Code Snippets
  • Troubleshooting
  • External Resources

On this page

  • Troubleshooting
    • Package Installation
    • Git
  • Edit this page
  • View source
  • Report an issue

Troubleshooting

Package Installation

Package installation can sometime be tricky and can go wrong for several reasons (locked files, outdated dependencies, old R version …). To minimize the chance of errors, follow this checklist:

  • Make sure no RStudio Project is loaded (except when using `{renv}`).

  • Make sure no package are loaded in the R session. Use Ctrl + Alt + F10 to restart the session to a fresh state.

  • Make sure you have a GITHUB_PAT token configured (by running Sys.getenv("GITHUB_PAT") in a R session, it should return a character starting with ghp_). If not, follow these instructions.

Git

Useful commands for resolving git problems are available in this chapter.

Back to top
Code Snippets
External Resources

Copyright ESQlabs GmbH 2025.

 
  • Edit this page
  • View source
  • Report an issue