You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R 3.4.0 and up has a default of identical(ignore.srcref = TRUE). Prior to that there is no option. It seems unwise for testthat to mess with the objects source references in expect_identical() so I don't think there is much else to do other than pass ... to identical().
Compatibility aside I think it'd be preferable to ignore the srcrefs attributes by default since their presence depends on things like the editor. I wouldn't call it unwise. Tomas plans to enable srcrefs by default and that might cause check failures:
I found that rlang fails its own tests when packages have source references (now can be enabled with R_KEEP_PKG_SOURCE=yes and re-installing packages/rebuilding R, but I would like to make this a default, if the space and performance overhead is small enough)
I see very few use cases for testing presence and equality of srcrefs attributes.
cc @kalibera @hadley
And forward
...
toidentical()
for more control.The text was updated successfully, but these errors were encountered: