% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convert_all.R
\name{convert_all}
\alias{convert_all}
\title{Convert all datasets within a folder to a given file format}
\usage{
convert_all(
  input_folderpath,
  considered_extensions,
  to,
  output_folderpath = input_folderpath
)
}
\arguments{
\item{input_folderpath}{Character. Folder path containing datasets to convert.}

\item{considered_extensions}{Character vector. File extensions to include
(must be supported by \pkg{rio}).}

\item{to}{Character. The target output format (must be supported by \pkg{rio}).}

\item{output_folderpath}{Character. Folder path for converted files
(defaults to \code{input_folderpath}).}
}
\value{
Invisibly returns a character vector of output file paths.
}
\description{
Scan a folder for files matching specified extensions, then convert each one
to the target format. Void character values are replaced with \code{NA} and
character whitespace is trimmed.
}
\examples{
\donttest{
mydir <- system.file("permadir_examples_and_tests/convert_all", package = "scrutr")
outdir <- tempdir()

convert_all(input_folderpath = mydir,
            considered_extensions = c("rds"),
            to = "csv",
            output_folderpath = outdir)

list.files(outdir, pattern = "csv$")
}
}
