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"

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed