Im trying to run multiple R files from a master file (as in other statistical softweres like Stata or Python) and, evendough Im already running R studio as an administrator, I keep running into this warning:
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'C:/Users/Dani Johansson/Desktop/DATA N RESEARCH/ENDISEG_2/Pre_Eliminary/CODE/R_Code/Data_Cleaning_n_Manipulation': Permission denied
This is the code Ive been using:
#For the sake of organization, the code is divided in the following sub sections:
#1.) Generalizations
#2.) Data set coordination
#1.) Generalizations:
data_manipulation_path <- "C:\\Users\\Dani Johansson\\Desktop\\DATA N RESEARCH\\ENDISEG_2\\Pre_Eliminary\\CODE\\R_Code\\Data_Cleaning_n_Manipulation"
#1.)Data set coordination and manipulation
master_data_manipulation <- paste(data_manipulation_path, "\\Master_Data_Manipulation.R")
source(data_manipulation_path)
PD: This was the actual value for data_manipulation_path:
data_manipulation_path <- "C:\Users\Dani Johansson\Desktop\DATA N RESEARCH\ENDISEG_2\Pre_Eliminary\CODE\R_Code\Data_Cleaning_n_Manipulation"