powered by
This function will search for all R related files in input folder.in and find loaded packages with the library() and require() functions.
pff_find_and_install_pkgs(folder.in, do.recursive = TRUE, my.library.path = .libPaths()[1], my.repository = "https://cloud.r-project.org")
Folder to search for R related files
Find files in all subdirectories? (default = TRUE)
Library to search for installed packages (default = .libPaths()[1])
Url of CRAN repository (default = "https://cloud.r-project.org" )
Messages in prompt and dataframe with the results
# NOT RUN { # } # NOT RUN { my.dir <- dirname(system.file('extdata/Example_Script_1.R', package = 'PkgsFromFiles')) df.out <- pff_find_and_install_pkgs(folder.in = my.dir) print(df.out) # }
Run the code above in your browser using DataLab