title: R script from command line
body: <p>I wanted to run this example script: <a href="http://mazamascience.com/WorkingWithData/?p=912" rel="noreferrer">http://mazamascience.com/WorkingWithData/?p=912</a> from Windows command line. So I opened the command line and typed <code>Rscript tryCatch.R 1</code>. However, I keep getting the error message <code>Error: R not found</code>. I did set the PATH environment variable as <code>C:\Programme\R\R-3.0.1\bin</code>. If I just type <code>R.exe</code>, it does start <code>R</code>, but it cannot find the packages that are to be loaded at start (e.g. <code>package 'utils' in options&lt;"defaultPackages"&gt; was not found</code>). I guess I have to set another path to the libraries somewhere, but I haven't got any idea where to do this.</p>
  
  <p>UPDATE: After explicitly typing <code>PATH C:\Programme\R\R-3.0.1\bin</code> (rather than just adding this to the value of the environment variable PATH) it seems that <code>R</code> is found. However, a new problem occurs: <code>In normalizePath&lt;path.expand(path), winslash, mustWork&gt;: path[2] = "C:/Programme/R/R-3.0.1/library": Access denied</code>, the same than for the <code>methods</code> library. Then: <code>Calls: .First ... library -&gt; .getRequiredPackages2 -&gt; library -&gt; normalizePath Execution stopped</code>. I'm using Windows 7 and I do have administrator rights.</p>