MatthewASimonson / r-orange

Automatically exported from code.google.com/p/r-orange
Other
0 stars 0 forks source link

Linear Model bug #507

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import data using R Datasets, choose "datasets, Orange"
2. Insert widget Linear Model and connect the Orange dataset
3. Select f(x): age and Elements: circumference
4. Commit

A Python error is generated.

R:DEBUG : lm_5_1304104827.25<-lm(data=Orange,subset=NULL,qr=TRUE,formula=age ~ 
circumference,singular_ok=TRUE,y=FALSE,weights=,offset=,contrasts=NULL,x=FALSE,m
odel=TRUE,method="qr")
can not convert lm yet
REDRCORE:CRITICAL : 

############################################################
Unhandled exception of type TypeError occured at 2011-04-29 15:23:38.596000:
Traceback:
  File: lm.py, line 85 in commitFunction
  Code: newData = redRRLMFit(self, data = self.Rvariables['lm'])
    TypeError: __init__() got multiple values for keyword argument 'data' 
############################################################

What version of the product are you using? On what operating system?
SVN revision 1292 on windows 7.
The error was reproduced with Red-R 1.85b (rev. 1280)

Original issue reported on code.google.com by sergeeti...@gmail.com on 29 Apr 2011 at 7:25

GoogleCodeExporter commented 9 years ago
fixed please test and clear.  error in not supressing conversion of the lm.  
Assignment should take the wantType = 'NoConversion' parameter to supress 
conversion of objects without python conversion methods.

Tested with plotting also, plot must take the png device, devSVG doesn't have 
plotmath methods.

Original comment by kylecovi...@gmail.com on 1 May 2011 at 9:33

GoogleCodeExporter commented 9 years ago
fixed

Original comment by kylecovi...@gmail.com on 2 May 2011 at 1:50