Rscript: command not found
<p>I'm working with R for a while, and I always worked with Rstudio, I tried just now to run a Rscript command in terminal (I have a mac..) and I got this error-</p>

<pre><code>&gt;Rscript script.R
 -bash: Rscript: command not found
</code></pre>

<p>when I tried to open R in the terminal I go the same error-</p>

<pre><code>&gt;R
-bash: R: command not found
</code></pre>

<p>I can run R code with the Rstudio and the R application, but I know there is a way to run R throw the terminal.
Did I miss something when I installed R on my computer? do I need to add R to my PATH?</p>

<p>thanks in advance!</p>