title: Insert variable within " " character string
body: <p>Ok so I am writing this loop which I intend to loop through and paste the name from my vector into the loop. The intended destination for the paste of the variable name is to be within a URL link and also a destfile name between " " marks. </p>
  
  <p>So far this is my procedure: </p>
  
  <pre><code>    # Download ETF AUM Files 
      file.list &lt;- c("DDM","MVV","QLD","SAA","SSO","TQQQ","UDOW","UMDD","UPRO","URTY","UWM", "BIB", "FINU","LTL","ROM", "RXL", "SVXY","UBIO","UCC","UGE","UPW","URE","USD","UXI","UYG","UYM","DOG","DXD","MYY","MZZ","PSQ","QID","RWM","SBB","SDD","SDOW","SDS","SH","SPXU","SQQQ","SRTY","TWM","SMDD","UVXY","VIXM","VIXY")
  
  
      # Loop 
       for (f in 1:length(file.list)) {
          next.file &lt;- file.list[i]
          file.name.variable &lt;- paste(next.file[1])
          url &lt;- "https://accounts.profunds.com/etfdata/ByFund/file.name.variable-historical_nav.csv"
          destfile &lt;- "C:/R Projects/Data/etf_aum/file.name.variable.csv"
          download.file(url, destfile, mode="wb")
  }
  </code></pre>
  
  <p>As you can see... I wish to enter the name of my variable inside the vector and paste into into my character strings for the url and destfile... Is there any way to do this? </p>
  
  <p>Right now it wouldn't recognize that I wish the name to be a variable, as its already in " " marks it would take it as its written. </p>