Learn R Programming

fcall (version 0.1.6)

compare_files_content: Compare content of a specific file between two folders

Description

compare_files_content() reads the content of a specified file from two folders and compares the content using the waldo::compare function. It identifies any differences in the content and returns the comparison results.

Usage

compare_files_content(filename, dir1, dir2)

Value

A list containing information about differences in the content of the specified file.

Arguments

filename

A character string specifying the name of the file to compare.

dir1

A character string specifying the path to the first folder.

dir2

A character string specifying the path to the second folder.

Details

compare_files_content() reads the content of the specified file from both folders using readLines(), and compares the content using the waldo::compare() function.