title: Execution stuck while creating embedded R instance
body: <p>I am using RInside to integrate R into a Qt application. Currently, I am trying to run the Qt example present in the RInside package. I am able to build the example but the execution gets stuck while creating an embedded R instance.</p>
  <pre><code>#include &lt;QApplication&gt;
  #include &quot;qtdensity.h&quot;
  
  int main(int argc, char *argv[])
  {
      qDebug() &lt;&lt; &quot;First&quot;;
      RInside R(argc, argv);          // Execution halts at this point
      qDebug() &lt;&lt; &quot;Second&quot;;
      QApplication app(argc, argv);
      QtDensity qtdensity(R);     // pass R inst. by reference
      return app.exec();
  }
  </code></pre>
  <p>The execution is getting stuck while creating the embedded R instance and is giving no errors.</p>
  <p><strong>Working Environment Used</strong></p>
  <p>RInside Package : Release 0.2.14</p>
  <p>Linux version : Red Hat Enterprise Linux Client release 5.8 (Tikanga)</p>
  <p>R : 3.1.1</p>
  <p>Rcpp lib : 0.11.4</p>
  <p>RInside lib : 0.2.14</p>
  <p>Qt : 4.7.4</p>
  <p>Any help or suggestions would be much appreciated. Thanks.</p>
  <h1>Update :</h1>
  <p>Now, I am trying a simpler example inside the rinside_sample0.cpp.</p>
  <pre><code>#include &lt;RInside.h&gt;                    // for the embedded R via RInside
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main(int argc, char *argv[]) {
  cout &lt;&lt; &quot;Starting \n&quot;;
  RInside R(argc, argv);              // create an embedded R instance
  cout &lt;&lt; &quot;R instance created\n&quot;;
  
  R[&quot;txt&quot;] = &quot;Hello, world!\n&quot;;   // assign a char* (string) to 'txt'
  
  R.parseEvalQ(&quot;cat(txt)&quot;);           // eval the init string, ignoring any returns
  
  exit(0);
  </code></pre>
  <p>}</p>
  <p>This code is also getting stuck while running. It is getting stuck at <code>RInside R(argc, argv);</code></p>
  <p>Now, when I set R_HOME to my R directory the execution gives me this error:</p>
  <pre><code>cannot find system Renviron
  Fatal error: unable to open the base package
  </code></pre>
  <p>Compilation Log :</p>
  <pre><code>g++ -I/pkg/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/include -I/pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include -I/pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/include -g -O2 -Wall -I/usr/local/include   rinside_sample0.cpp  -Wl,--export-dynamic -fopenmp  -L/pkg/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/lib -lR -lrt -ldl -lm -licuuc -licui18n -Wl,-rpath,&quot;/pkg/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5&quot;/lib -L/pkg/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/lib -lRblas -L/pkg/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/lib -lRlapack  -L/pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/lib -lRInside -Wl,-rpath,/pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/lib -o rinside_sample0
  In file included from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/RcppCommon.h:34,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp.h:27,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/include/RInsideCommon.h:38,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/include/RInside.h:26,
                   from rinside_sample0.cpp:10:
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:35: warning: ignoring #pragma push_macro
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:40: warning: ignoring #pragma push_macro
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:45: warning: ignoring #pragma push_macro
  In file included from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/RcppCommon.h:34,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp.h:27,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/include/RInsideCommon.h:38,
                   from /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/RInside/include/RInside.h:26,
                   from rinside_sample0.cpp:10:
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:60: warning: ignoring #pragma pop_macro
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:64: warning: ignoring #pragma pop_macro
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/r/headers.h:68: warning: ignoring #pragma pop_macro
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/Date.h: In member function ‘void Rcpp::Date::update_tm()’:
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/Date.h:108: warning: converting to ‘time_t’ from ‘double’
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/Date.h: In function ‘Rcpp::Date Rcpp::operator+(const Rcpp::Date&amp;, int)’:
  /pkg/.site/pkgs05/OSS-R-/3.1.1/x86_64-linux2.6-glibc2.5/lib64/R/library/Rcpp/include/Rcpp/Date.h:139: warning: converting to ‘time_t’ from ‘double’
  </code></pre>