Skip to content

Commit 263566e

Browse files
committed
Added working directory setting to market_value_renewables.R
1 parent 74940c6 commit 263566e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

session3_r/scripts/market_value_renewables.R

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ library(ggplot2)
55
library(tidyverse)
66
library(wesanderson)
77

8+
### Set Working Directory - works in R-Studio only
9+
scriptDir<-dirname(rstudioapi::getActiveDocumentContext()$path)
10+
setwd(paste0(scriptDir,"/../"))
11+
812
# Download file from open power system data (opsd)
913

1014
opsd_filename<-"data/time_series_60min_singleindex.csv"

0 commit comments

Comments
 (0)