Error:attempt to apply non-function

前端 未结 2 1140
野趣味
野趣味 2021-02-05 02:09

I\'m trying to run the following code in R, but I\'m getting an error.

I\'m not sure what part of the formula is incorrect. Any help would be greatly appreciated.

<
2条回答
  •  渐次进展
    2021-02-05 02:48

    I got the error because of a clumsy typo:

    This errors:

    knitr::opts_chunk$seet(echo = FALSE)
    

    Error: attempt to apply non-function

    After correcting the typo, it works:

    knitr::opts_chunk$set(echo = FALSE)
    

提交回复
热议问题