Function to grab the available packages listed on CRAN

This commit is contained in:
2022-06-16 11:27:01 +01:00
parent 6ea4f81bc9
commit 15ded69426
7 changed files with 117 additions and 2 deletions

14
man/check_pacman_dir.Rd Normal file
View File

@@ -0,0 +1,14 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{check_pacman_dir}
\alias{check_pacman_dir}
\title{Checks the current project has a valid pacman directory structure}
\usage{
check_pacman_dir()
}
\value{
invisible boolean TRUE if the structure is valid, FALSE otherwise
}
\description{
Checks the current project has a valid pacman directory structure
}

View File

@@ -0,0 +1,19 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch_available_packages.R
\name{fetch_available_packages}
\alias{fetch_available_packages}
\title{Fetch the current (or check the cache) list of packages available for install
from the CRAN repositories.}
\usage{
fetch_available_packages(refetch = FALSE)
}
\arguments{
\item{refetch}{Boolean indicating if the local cache should be invalidated.}
}
\value{
A data frame of available packages and their versions
}
\description{
Fetch the current (or check the cache) list of packages available for install
from the CRAN repositories.
}

14
man/get_cran_repo.Rd Normal file
View File

@@ -0,0 +1,14 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_cran_repo}
\alias{get_cran_repo}
\title{Returns the CRAN repository source or requests the user select one}
\usage{
get_cran_repo()
}
\value{
string CRAN repository URL
}
\description{
Returns the CRAN repository source or requests the user select one
}

View File

@@ -2,7 +2,8 @@
% Please edit documentation in R/list_depends.R
\name{list_depends}
\alias{list_depends}
\title{Recursively find all the installed dependencies of one or more packages.}
\title{Recursively find all the installed dependencies of one or more installed
packages.}
\usage{
list_depends(depends)
}
@@ -13,5 +14,6 @@ list_depends(depends)
A data frame with the dependency tree
}
\description{
Recursively find all the installed dependencies of one or more packages.
Recursively find all the installed dependencies of one or more installed
packages.
}