InitiativeGrundrechte / Nowcasting_COVID-19

Nowcasting the number of COVID-19 cases for Saxony, Germany
MIT License
2 stars 0 forks source link

Fehler: No tidy method for objects of class stsNC #1

Open xong opened 4 years ago

xong commented 4 years ago

Hallo,

ich würde das Skript gern unter Windows 10 ausführen. Nach einigen Startschwierigkeiten konnte ich alle Abhängigkeiten installieren.

Allerdings bekomme ich nun bei der Ausführung mittels python nowcasting folgende Fehlermeldung:

Error: No tidy method for objects of class stsNC In addition: Warning message: In nowcast(now = now, when = nowcastDates, data = as.data.frame(country_weibull), : 25 cases with a delay longer than D=21 days forced to have a delay of D days.

Traceback (most recent call last): File "nowcasting", line 24, in robjects.r('source(\'./nowcasting_covid19_saxony.R\')'); File "C:\Program Files\Python38\Lib\site-packages\rpy2\robjects__init.py", line 416, in call res = self.eval(p) File "C:\Program Files\Python38\Lib\site-packages\rpy2\robjects\functions.py", line 197, in call return (super(SignatureTranslatedFunction, self) File "C:\Program Files\Python38\Lib\site-packages\rpy2\robjects\functions.py", line 125, in call res = super(Function, self).call(*new_args, *new_kwargs) File "C:\Program Files\Python38\Lib\site-packages\rpy2\rinterfacelib\conversion.py", line 44, in cdata = function(args, **kwargs) File "C:\Program Files\Python38\Lib\site-packages\rpy2\rinterface.py", line 621, in call__ raise embedded.RRuntimeError(_rinterface._geterrmessage()) rpy2.rinterface_lib.embedded.RRuntimeError: Error: No tidy method for objects of class stsNC

Laut https://community.rstudio.com/t/tidying-an-object-of-class-mediate/60665 soll es helfen, die development version von broom zu installieren, allerdings bleibt der Fehler bestehen.

Habt ihr vielleicht einen Tipp, was ich noch versuchen könnte?

Ich verwende Python 3.8.2 sowie R 4.0.0.

Danke und liebe Grüße Robert

Nachtrag: Auch der direkte Aufruf mittels rscript liefert (natürlich) den selben Fehler.

InitiativeGrundrechte commented 4 years ago

Hier läuft es mit R Version 3.6.1 und Python 3.7.5 (Ubuntu eoan). Zu Windows kann ich leider nichts sagen.