📅 2023-04-16 — Session: Configured R environment in Visual Studio Code

🕒 22:55–23:20
🏷️ Labels: R, Vs Code, Configuration, Data Wrangling, R Markdown
📂 Project: Dev
⭐ Priority: MEDIUM

Session Goal

The primary goal of this session was to configure the R programming environment within Visual Studio Code, enabling efficient data manipulation and notebook creation using R and R Markdown.

Key Activities

  • Data Wrangling with Tidyverse: Implemented an R script for data wrangling using the tidyverse package, focusing on reading CSV files, extracting variable roots with regex, and selecting relevant columns.
  • R Notebooks in VS Code: Created and ran R notebooks using Visual Studio Code, including the installation of the R extension and exporting notebooks as HTML.
  • Configuring R Path: Resolved configuration errors by specifying the R executable path in the settings.json file of VS Code.
  • R Installation: Installed R for Visual Studio Code, ensuring the correct configuration of the R executable path.
  • R Markdown Usage: Installed and utilized the R Markdown extension in VS Code for creating R notebooks.
  • Troubleshooting: Addressed issues with Rmd file display in VS Code by verifying extension installations and configuring language modes.

Achievements

  • Successfully configured the R environment in Visual Studio Code, enabling seamless R programming and notebook creation.
  • Resolved configuration and installation issues related to R and R Markdown in VS Code.

Pending Tasks

  • Further exploration of advanced data manipulation techniques with tidyverse.
  • Continuous monitoring of the R environment setup for any emerging issues.