getSaveMostRecentfolders: Get and save the most updated folders.

View source: R/getSaveMostRecentfolders.R

getSaveMostRecentfoldersR Documentation

Get and save the most updated folders.

Description

This function selects the most updated trade folders and copies specific files to another directory. The files copied are: development.log and the entire folder datadir. The subfolder "datadir" is essential for creating the Pre-Processing Report.

Usage

getSaveMostRecentfolders(initialDir = initial, saveDir = save,
  minYear = minYearToProcess, maxYear = maxYearToProcess)

Arguments

initialDir

Path where there are the trade folders.

saveDir

Path where the most updated trade folders should be saved.

minYear

Minimum year to be processed the Pre-Processing Report.

maxYear

Maximum year to be processed the Pre-Processing Report.

Value

Folders copied to a specific directory.


SWS-Methodology/faoswsTrade documentation built on Feb. 13, 2023, 1:04 a.m.