1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/non-oo-api.R 3\name{desc_set} 4\alias{desc_set} 5\alias{desc_set_list} 6\title{Set one or more fields in a DESCRIPTION file} 7\usage{ 8desc_set(..., file = ".", normalize = FALSE) 9 10desc_set_list(key, list_value, sep = ", ", file = ".", normalize = FALSE) 11} 12\arguments{ 13\item{...}{Values to set, see details below.} 14 15\item{file}{DESCRIPTION file to use. By default the DESCRIPTION 16file of the current package (i.e. the package the working directory 17is part of) is used.} 18 19\item{normalize}{Whether to normalize the write when writing back 20the result. See \code{\link{desc_normalize}}.} 21 22\item{key}{Key to set in \code{desc_set_list()}.} 23 24\item{list_value}{Character vector, to collapse in 25\code{desc_set_list()}.} 26 27\item{sep}{Separator string for \code{desc_set_list()} list fields.} 28} 29\description{ 30Set one or more fields in a DESCRIPTION file 31} 32\details{ 33\code{desc_set} supports two forms, the first is two unnamed 34arguments: the key and its value to set. 35 36The second form requires named arguments: names are used as keys 37and values as values to set. 38 39\code{desc_set_list()} collapses a character vector into string, 40separating the elements by commas. 41} 42\seealso{ 43Other simple queries: 44\code{\link{desc_del}()}, 45\code{\link{desc_fields}()}, 46\code{\link{desc_get_field}()}, 47\code{\link{desc_get}()}, 48\code{\link{desc_has_fields}()} 49} 50\concept{simple queries} 51