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
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+33-7Lines changed: 33 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -47,18 +47,44 @@ For all functions used in dplyr verbs, translations must be provided.
47
47
The code lives in `translate.R` .
48
48
New translations must change code in two places:
49
49
50
-
1. The `switch()` in `rel_find_call()` needs a new entry, together with the package that is home to the function. The top 60 functions, ranked by importance, are already part of that `switch()`, as a comment if they are not implemented yet.
51
-
1. The actual translation must be implemented in `rel_translate_lang()`. This is easy for some functions that have similar functions that are already translated, but harder for others. This part of the code is not very clear yet, in particular, argument matching by name is only available for a few functions but should be generalized.
52
-
1. Test your implementation in the console with code of the form:
50
+
1. The `switch()` in `rel_find_call()` needs a new entry, paired with the name of the package that is home to the function.
51
+
The top 60 functions, ranked by importance, are already part of that `switch()`, as a comment if they are not implemented yet.
52
+
Example: For adding `lubridate::month()`, add a line of the following form to the `switch()`:
0 commit comments