Skip to content
/ r-devcontainer Public template

Template to setup an R working environment for VSCode

License

Notifications You must be signed in to change notification settings

qtalr/r-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r-devcontainer

This repository contains a VSCode devcontainer to set up a development environment for R programming. This environment was developed to be used with the Introduction to Quantitative Text Analysis for Linguistics textbook.

Features

  • R 4.4.1 based on the Rocker Project's image
  • Quarto 1.3.450 and Pandoc 3.1.1
  • Git configuration support
  • Radian and Jupyter for enhanced R programming experience
  • TinyTeX for LaTeX support
  • Common R packages: devtools, httpgd, knitr, languageserver, renv, rmarkdown, tinytex

Prerequisites

  • Docker
  • Visual Studio Code
    • with Remote - Containers extension installed

Usage

  1. Clone this repository or use it as a reference for your own project.
  2. Ensure you have Docker and Visual Studio Code with the Remote - Containers extension installed.
  3. Open the cloned folder in Visual Studio Code.
  4. When prompted, click "Reopen in Container" to start the development environment.

Note

The container will take some time to build the first time you open it.

Customization

  • Modify the .devcontainer/Dockerfile to add or remove system dependencies or R packages.
  • Adjust the .devcontainer/docker-compose.yml file to change container settings.
  • Edit the .devcontainer/devcontainer.json file to modify VS Code settings or extensions.
  • The container includes a non-root user 'ruser' with sudo privileges for better security.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

About

Template to setup an R working environment for VSCode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published