How to Apply the system.file() Function in R (Example Code)
In this article you’ll learn how to find the root of packages and files using the system.file function in the R programming language.
Example: Applying system.file() Function to Find Names of R System Files
system.file( = "ggplot2") # Path of ggplot2 # [1] "C:/Users/Data Hacks/Documents/R/win-library/4.1/ggplot2" |
system.file( = "ggplot2") # Path of ggplot2 # [1] "C:/Users/Data Hacks/Documents/R/win-library/4.1/ggplot2"