Skip to content

Commit

Permalink
missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiasiamp committed Dec 8, 2024
1 parent 4d70c4e commit 602fb02
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dpe-reconstruct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# Step 3: Install dependencies)
- name: Install R packages
run: |
Rscript -e "install.packages('dplyr')"
Rscript -e "install.packages(c('dplyr', 'readxl', 'writexl', 'here', repos='https://cloud.r-project.org/')"
# Step 4: Run the code to update the document
- name: Run update script
Expand Down
12 changes: 10 additions & 2 deletions create_mock_data/reconstructing_dpes.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

# Load necessary libraries
library(dplyr)
library(readxl)
library(writexl)
library(here)

# Your code that uses these libraries


##### Creating DPE_P1 and DPE_P2
dpe_tracy <- readxl::read_excel(here::here("Tracy/DPE_KARMEN_TRACY.xlsx"), sheet = 1)
dpe_ines <- readxl::read_excel(here::here("Ines/DPE_KARMEN_INES.xlsx"), sheet = 1)
Expand All @@ -9,8 +19,6 @@ dataschema_p1 <- list(Variables = tibble::tibble(readxl::read_excel(here::here(
dataschema_p2 <- list(Variables = tibble::tibble(readxl::read_excel(here::here("rmonize/data_schema/", "Dataschema_P2.xlsx"), sheet = 1)),
Categories = tibble::tibble(readxl::read_excel(here::here("rmonize/data_schema/", "Dataschema_P2.xlsx"), sheet = 2)))

library(dplyr)

# Assuming these are data.frames
combined_data <- bind_rows(dpe_tracy, dpe_ines, dpe_franzi)

Expand Down

0 comments on commit 602fb02

Please sign in to comment.