Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to realize function from some R package in Mathematica. First load RLink and package what I need

InstallR["RHomeLocation" -> "c:\\R-2.15.3\\"]

then create RObject

rf=REvaluate["randomForest(Species~ .,data=iris,importance=TRUE,proximity=TRUE)"];

create RFunction that takes an RObject as input

treeSize = RFunction["treesize"]

Here start a problem. When I call this fuction


its return following error message

RSet::puterr: Error putting the expression ... into a variable myRandomVar123456782845 in R. The last error message issued by R was Error in attr(myRandomVar123456782845[[10]], "dimnames") <- myRandomVar123456751330: 'dimnames' must be a list
share|improve this question
Have you seen this? – Szabolcs Jun 13 '14 at 13:16
@Szabolcs Thank. There is answer – molekyla777 Jun 13 '14 at 14:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.