How to suppress warnings from stats:::regularize.values?

后端 未结 2 520
青春惊慌失措
青春惊慌失措 2020-12-17 02:27

In newer versions of R (I have 3.6 and previously had 3.2), the stats::regularize.values function has been changed to have a default value of warn.collapsing as

2条回答
  •  悲&欢浪女
    2020-12-17 02:56

    I had this problem too, and fixed it by adding ties=min to the argument list of splinefun(). The value of missing(ties) is now passed as warn.collapsing to regularize.values().

    https://svn.r-project.org/R/trunk/src/library/stats/R/splinefun.R
    https://svn.r-project.org/R/trunk/src/library/stats/R/approx.R

    Also see: https://cran.r-project.org/doc/manuals/r-release/NEWS.html and search for regularize.values().

提交回复
热议问题