Gem load error when trying to use RinRuby
<p>I am trying to use the RinRuby gem, but when trying to fire up my rails server I get the following error:</p>

<pre><code> in require': There was an error while trying to load the gem 'rinruby'. 

(Bundler::GemRequireError)
Gem Load Error is: No such file or directory - R
Backtrace for gem load error is:
/Users/reinierverbeek/.rvm/gems/ruby-2.3.0/gems/rinruby-2.0.3/lib/rinruby.rb:164:in `popen'
/Users/reinierverbeek/.rvm/gems/ruby-2.3.0/gems/rinruby-2.0.3/lib/rinruby.rb:164:in `initialize'
/Users/reinierverbeek/.rvm/gems/ruby-2.3.0/gems/rinruby-2.0.3/lib/rinruby.rb:789:in `new'
</code></pre>

<p>I have R installed and my .bash-profile file looks like this:</p>

<pre><code>PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}”
export PATH

[[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export R_HOME="/Library/Frameworks/R.framework/Resources"
source ~/.profile
</code></pre>

<p>I added this bash file, because I also noticed that I am not able to execute R scripts from the CLI using Rscript, but I have to include the whole path </p>

<pre><code>"/Library/Frameworks/R.framework/Resources/Rscript"
</code></pre>

<p>I also tried to edit my path with the following:</p>

<pre><code>PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}:/Library/Frameworks/R.framework/Resources/Rscript”
</code></pre>

<p>but this didn't help</p>