% Generated by roxygen2: do not edit by hand % Please edit documentation in R/autoload.R \name{autoload} \alias{autoload} \title{Auto-load the active project} \usage{ autoload() } \description{ Automatically load the renv project associated with a particular directory. renv will search parent directories for the renv project root; if found, that project will be loaded via \code{\link[=load]{load()}}. } \details{ To enable the renv auto-loader, you can place: \if{html}{\out{
}}\preformatted{renv::autoload() }\if{html}{\out{
}} into your site-wide or user \code{.Rprofile} to ensure that renv projects are automatically loaded for any newly-launched \R sessions, even if those \R sessions are launched within the sub-directory of an renv project. If you'd like to launch \R within the sub-directory of an renv project without auto-loading renv, you can set the environment variable: \if{html}{\out{
}}\preformatted{RENV_AUTOLOAD_ENABLED = FALSE }\if{html}{\out{
}} before starting \R. Note that \code{renv::autoload()} is only compatible with projects using \verb{renv 0.15.3} or newer, as it relies on features within the \code{renv/activate.R} script that are only generated with newer versions of renv. }