Skip to contents

This function will create the .Rprofile file in a project path to use a custom library path for future session

Usage

use_library(custom_lib_path, project_path = ".")

Arguments

custom_lib_path

path with a R library folder

project_path

project path

Examples

path <- withr::local_tempdir()
use_library(.libPaths(), path)
#>  Using this project path: /tmp/RtmpToNE0u/file1f2f5b72b111
#> Warning: cannot open file '/tmp/RtmpToNE0u/file1f2f5b72b111/.Rprofile': No such file or directory
#> Error in file(con, "w"): cannot open the connection