% Generated by tinyroxygen: do not edit by hand
% Please edit documentation in description.R
\name{description_update}
\alias{description_update}
\title{Update DESCRIPTION Imports and Suggests fields}
\usage{
description_update(
  pkgdir = ".",
  dir.r = "R",
  dir.v = "vignettes",
  dir.t = "tests",
  extra_suggests = NULL,
  pkg_ignore = NULL
)
}

\arguments{
\item{pkgdir}{The path to the package directory. Defaults to the current
  directory.}

\item{dir.r}{Directory with R scripts (Imports). Defaults to 'R'.}

\item{dir.v}{Vignettes directory (Suggests). Set to '' to skip.}

\item{dir.t}{Tests directory (Suggests). Set to '' to skip.}

\item{extra_suggests}{Character vector of extra packages to add to
  Suggests.}

\item{pkg_ignore}{Character vector of package names to exclude from both
  fields.}
}

\value{
Invisibly returns the path to the 'DESCRIPTION' file.
}

\description{
Scan R code in the package directories to identify used
  packages and update the 'Imports' and 'Suggests' fields in the
  'DESCRIPTION' file. Packages found in 'dir.r' go to 'Imports'; packages
  found only in 'dir.v' or 'dir.t' go to 'Suggests'. Detects
  'pkg::fun()', '@importFrom pkg fun', 'library(pkg)', and 'require(pkg)'
  patterns. Uses only 'read.dcf'/'write.dcf' from base R, so it does not
  require installing the 'desc' package or any of its dependencies.
}

