Skip to contents

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)

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.

Value

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

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.