title: Use a defined Variable as part of Path name in R
body: <p>Hello everybody I have the following problem:
  With the R script im writing, I wish to use a variable that is to be given by the user, as a part of the file path the programm is to open. The code looks like this:</p>
  
  <pre><code>options(max.print=9999999)
  
  $n &lt;- readline(prompt="Input Analysis Nr: ")
  
  d20 = read.csv("C:/Documents/Analysis/$n/$n_20.csv", header = TRUE, row.names=NULL)
  </code></pre>
  
  <p>As you can see, im trying to define the path of the file with the input of the variable $n. Wenn I run the script, the value of $n isnt shown in the file path and I receive an error, since there is no file with that name. 
  Do you have an idea of what the correct syntax for this is?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Max</p>