Do you have the R_HOME variable set to the results of executing &quot;R RHOME&quot;?<br><br><div>- Wes</div><div><br><div class="gmail_quote">On Fri, Feb 25, 2011 at 4:49 PM, Li, Wen <span dir="ltr">&lt;<a href="mailto:wen-li@uiowa.edu" target="_blank">wen-li@uiowa.edu</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi, all</p><p class="MsoNormal"> </p><p class="MsoNormal">


We have been trying to use R in vtk to do some statistic analysis for surfaces.</p><p class="MsoNormal"> </p><p class="MsoNormal">The program was running perfectly when we simply used functions like “mean” and “sum” in our R script.</p>


<p class="MsoNormal"> </p><p class="MsoNormal">But when we try to use other functions like “read.csv()”, it complains that this function can not be found.</p><p class="MsoNormal"> </p><p class="MsoNormal">And we see the errors like,</p>


<p class="MsoNormal"> </p><p class="MsoNormal">--------------------------------------------------------------------------------------------</p><p class="MsoNormal"> Error in identical(env, as.environment(i)) :</p><p class="MsoNormal">


  5 arguments passed to .Internal(identical) which requires 2</p><p class="MsoNormal">Error in file(paste(tempdir(), &quot;/Routput.txt&quot;, sep = &quot;&quot;), open = &quot;wt+&quot;) :</p><p class="MsoNormal">  5 arguments passed to .Internal(file) which requires 4</p>


<p class="MsoNormal">Error in identical(arg, choices) :</p><p class="MsoNormal">  5 arguments passed to .Internal(identical) which requires 2</p><p class="MsoNormal">-----------------------------------------------------------------------------------------------</p>


<p class="MsoNormal"> </p><p class="MsoNormal">Any help or suggestion to solve this problem will be appreciated.</p><p class="MsoNormal"> </p><p class="MsoNormal">Thank you in advance.</p><p class="MsoNormal"> </p><p class="MsoNormal">


Wen Li</p><p class="MsoNormal">The University of Iowa</p></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>Technical Leader<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4920<br>
</div>