Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.