There was an explanation in the Rscript documentation.
https://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rscript.html
Here are some excerpts.
Additional options accepted (before file or args) are
--default-packages=list
where list is a comma-separated list of packages names or NULL.Sets the environment variable R_DEFAULT_PACKAGES which determines the packages loaded on startup.The default for Rscript items methods as it takes about 60% of the startup time.
In summary,
If you boot with Rscript, what is the default (compared to booting with Rgui)?Note) 60% of the methods are omitted.
Rscript--default-packages=util hoge.r
When booting with Rscript, the default (compared to booting with Rgui)?Note) 60% of the methods are omitted.
Rscript--default-packages=util hoge.r
It should be done in a way like this.
© 2024 OneMinuteCode. All rights reserved.