1414# r replace exact match of the first argument by the second argument
1515# R replace line containing the first argument by the second argument
1616# D+3-1 delete line containing the specified string and 1 preceding and 3 following lines
17- # s substitute line containing the specified regular expression (use Python regex syntax)
17+ # s substitute match of the regular expression with given string (use Python regex syntax)
1818#
1919# NOTES:
2020# The definition order of the filters (in this file) matters.
4141# for all packages: delete line containing 'detaching ‘package:grid’'
4242.* => D/detaching ‘package:grid’
4343
44- # for all packages: delete line containing 'detaching ‘package:grid’'
44+ # normalize environment addresses
4545.* => s/<environment: 0x[0-9A-Fa-f]*>/<environment: 0xCAFEBABE>
4646
4747# for individual packages:
@@ -61,3 +61,15 @@ compare => D+3/Error in source(filename, local = TRUE) :
6161# plus we remove factor's "Levels" followed by the attribute value
6262compare => D-1/[1] poor poor poor middle middle middle
6363compare => D/Levels: poor middle
64+
65+ # ------
66+ # "Error in try(stop("!!")) :" vs "Error :"
67+ assertthat => r/Error in try(stop("!!"))/Error
68+
69+ # differences in paths
70+ assertthat => s/Path '.*' does not exist/Path 'path/to/somewhere' does not exist
71+ assertthat => s/Path '.*' is not a directory/Path 'path/to/dir' is not a directory
72+
73+ # different output format in GNUR and FastR
74+ assertthat => R/[1] "mean %has_args% \"y\" is not TRUE"/REPLACED has_args
75+ assertthat => R/[1] "`%has_args%`(f = mean, args = \"y\") is not TRUE"/REPLACED has_args
0 commit comments