https://bugs.documentfoundation.org/show_bug.cgi?id=151603
--- Comment #17 from Werner Tietz <[email protected]> --- may be this is related to bug https://bugs.documentfoundation.org/show_bug.cgi?id=133123 Can you fix it by manually append the patch from comment 3 to your uno.py btw. the following code runs with success on LO7.0.4.2 (with the mentioned patch): ``` import numpy as np from rpy2.robjects.packages import importr, data rpart = importr('rpart') datasets = importr('datasets') base = importr('base') def acertos_iris(args=None): iris = data(datasets).fetch('iris')['iris'] model = rpart.rpart('Species ~ .', iris) preds = rpart.predict_rpart(model, iris, type='class') nacertos = base.sum(base.diag(base.table(preds, iris.rx2(5)))) erro = nacertos[0]/150 doc = XSCRIPTCONTEXT.getDocument() doc.CurrentSelection.Spreadsheet["A1"].Value = erro ``` as you can see "scriptforge" is irrelevant! -- You are receiving this mail because: You are the assignee for the bug.
