I am trying to use R to analyze a batch of data from LCMS. I am using an R package that has already been developed. I am new to using R. In the code I input a file path as a variable inside the function as shown below.
'function(
filepath.mzXML<- "/Users/phoebe/Desktop/R-code test", )'
Later in the code, it uses this variable to do the file.path function. I get the following Error code when I run the code.
function(
+ filepath.mzXML<- "/Users/phoebekeyes/Desktop/R-code test",
Error: unexpected assignment in:
"function(
filepath.mzXML<-"
Can someone help me determine how to resolve this issue? Thank you in advance!