Examines the Methods section of EML
test_methods.Rd
test_methods()
first extracts the methods from an EML object. If methods are not present, the test fails with an error. If the methods are present, the tests asks 1) Is the section longer than 20 words? If not, the test fails with a warning. 2) Does the methods section contain unconventional characters such as ? If so, the test fails with a warning. 2) Does the methods section contain additional spaces (more than two consecuitive spaces)? If so, the test fails with a warning. If all of the tests pass, the test as whole passes. For any error or warning, users are advised to use EMLeditor::set_methods()
to correct the problem.
Usage
test_methods(metadata = load_metadata(directory))