check_rep_seeds_depr: Checks if jobs were run with the same seed on older logs

View source: R/check_rep_seeds_depr.R

check_rep_seeds_deprR Documentation

Checks if jobs were run with the same seed on older logs

Description

Checks every log file inside a folder for the record of the used seed and returns duplicated seeds and corresponding job arrays.

Usage

check_rep_seeds_depr(logs_path)

Arguments

logs_path

Character with path to the folder containing logs. Only log files should be present, in plain text format.

Value

A data frame with four columns. Each line contains the information of one result with a duplicated seed. There will be no lines if there are no duplicated seeds in the any of the logs. Columns are as follows:

  • Data: A character vector with the name of the data set where duplicates were found.

  • Models: A numeric with corresponding array index. Will be empty if no duplicates were found.

  • Seeds: A numeric with the corresponding seed that was duplicated.

  • Array_indices: A numeric with corresponding array index.

Note

In this function, the lines containing the scraped values can be anywhere in each file, as this occurred in older versions of the package. Checking is thus less efficient and preference should be given to check_rep_seeds() in most cases, unless older log files are being checked. check_rep_seeds() will fail for most older log files.

Author(s)

Pedro Santos Neves

See Also

check_rep_seeds() for optimized checks on current logs.

Examples

## Not run: 
repeated_seeds <- check_rep_seeds_depr(logs_path = "/logs/")

## End(Not run)

tece-lab/DAISIEutils documentation built on Jan. 31, 2024, 12:09 p.m.