tests/testthat/_snaps/utils.md

write_if_different produces informative messages

Code
  write_if_different(path, "a <- 2")
Message
  Writing 'test.R'
Output
  [1] TRUE
Code
  write_if_different(path, "a <- 2")
Condition
  Warning:
  Skipping 'test.R'
  x It already exists and was not generated by roxygen2.
Output
  [1] FALSE
Code
  write_if_different(path, "a <- 2")
Condition
  Warning:
  Skipping '+.R'
  x Invalid file name
Output
  [1] FALSE


Try the roxygen2 package in your browser

Any scripts or data that you put into this service are public.

roxygen2 documentation built on Dec. 9, 2022, 1:09 a.m.