powered by
The function takes the output of get_packages and writes in a file the commands needed to install and update package used throughout the project.
get_packages
generate_install_file( file, package_df = get_packages(), include_core_package = FALSE )
The name of the file to be created.
A data frame obtained with get_packages that contains information regarding the name, version and source of the package.
Logical, whether to include in the generated install file package which come with R by default
Nothing
# NOT RUN { package_df <- get_packages(package_options = c("library")) generate_install_file("install_packages.R", package_df) # } # NOT RUN { # }
Run the code above in your browser using DataLab