Run R Script - Ubuntu Server

前端 未结 1 790
粉色の甜心
粉色の甜心 2021-01-28 11:44

I\'ve recently compiled R on Ubuntu Server 16.04. I\'m attempting to run an R Script using the Rscript function, but I\'m running into errors.

When I run the script usi

相关标签:
1条回答
  • 2021-01-28 12:27

    It is a design bug in Rscript: it does not load methods on startup.

    Two fixes:

    1. Add library(methods) to your script, or
    2. Do sudo apt-get install r-cran-littler and use r instead of Rscript.

    r has been loading methods since day one as this behaviour of Rscript never really made sense.

    0 讨论(0)
提交回复
热议问题