DRDataRaft/ docs
GitHub ↗

E11 Compare YAML with Saved File

E11The extension in your workspace1 step

Use your current course session. Preparation and course runner · R script ↓

E11 Compare YAML with Saved File

Goal: Distinguish the buffer from disk.

Prerequisites: E10.

MANUAL: Change the description without saving. Run DataRaft: Compare YAML with Saved File. Save and compare again. If the file changed externally, preserve your edits and reopen the editor first.

training_step(
  "E11",
  {
    print(file.info(odcs_path)[, c("size", "mtime")])
  },
  needs = c("E10"),
  enabled = training_options$gui,
  optional = TRUE
)

Expected result: A diff before saving; a new saved baseline afterward.

Task: Which version does the next R validation use?

Show solution

The saved file, not the unsaved buffer.

Search documentation

Search functions, packages and guides.