浏览代码

Make prophet the first class (#68, #16)

Ben Letham 8 年之前
父节点
当前提交
ecc0682970
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      R/R/prophet.R

+ 1 - 1
R/R/prophet.R

@@ -109,7 +109,7 @@ prophet <- function(df = df,
     history = NULL
   )
   validate_inputs(m)
-  class(m) <- append(class(m), "prophet")
+  class(m) <- append("prophet", class(m))
   if (fit) {
     m <- fit.prophet(m, df, ...)
   }