소스 검색

R check cleanups

Ben Letham 7 년 전
부모
커밋
e0cf400e23
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      R/R/diagnostics.R
  2. 1 1
      R/R/plot.R

+ 1 - 1
R/R/diagnostics.R

@@ -34,7 +34,7 @@ generate_cutoffs <- function(df, horizon, initial, period) {
     }
     result <- c(result, cutoff)
   }
-  result <- head(result, -1)
+  result <- utils::head(result, -1)
   if (length(result) == 0) {
     stop(paste(
       'Less data than horizon after initial window.',

+ 1 - 1
R/R/plot.R

@@ -390,7 +390,7 @@ dyplot.prophet <- function(x, fcst, uncertainty=TRUE,
   forecast.label='Predicted'
   actual.label='Actual'
   # create data.frame for plotting
-  df <- prophet:::df_for_plotting(x, fcst)
+  df <- df_for_plotting(x, fcst)
   
   # build variables to include, or not, the uncertainty data
   if(uncertainty && exists("yhat_lower", where = df))