Hi Dr. Spence
I inputted source('myFuncs.R') into the R prompt and received this response:
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'myFuncs.R': No such file or directory
So in that case, I entered the file where myFuncs.R is stored, and when I inputted source('myFuncs.R') into the R prompt, I received this response:
Error in eval(ei, envir) : object 'x' not found
What are some potential reasons why this would happen?
When I was testing out my code in R , everything was fine (i.e., output matched output from test code)