I create an R Package project and install it using the following code.
install.packages("f:/Desktop/function/", repos = NULL, type = "source")
However, when I try to attach the package with library(function)
, I got
Error: unexpected ')' in "library(function)"
How should I correctly install a custom package?
function
is a key command in R
that should not be used to create custom objects. It's messing names.
I recommend to change the name of the package.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.