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
The Introduction to R states in section 2.4 that you should not use the abbreviations T and F for TRUE and FALSE since T and F are just variables that are set to TRUE and FALSE by default but can be overwritten by the user.
The tidyverse style guide, does not explicitly discourage the use of T and F, but always uses TRUE and FALSE as the logical values.
As of 00f0d96, styler does not convert the values T and F to TRUE and FALSE. Since T and F might have been assigned other values than the default, such a conversion would be highly problematic.
On the other hand, currently, T and F are just left as is, without message to the user, which is probably also not the thing we would expect from styler.
To conclude, checking for the usage of T and F and return a warning might be a reasonable way to go, so the user can resolve the problem manually.
The text was updated successfully, but these errors were encountered:
The Introduction to R states in section 2.4 that you should not use the abbreviations
T
andF
forTRUE
andFALSE
sinceT
andF
are just variables that are set toTRUE
andFALSE
by default but can be overwritten by the user.The tidyverse style guide, does not explicitly discourage the use of
T
andF
, but always usesTRUE
andFALSE
as the logical values.As of 00f0d96, styler does not convert the values
T
andF
toTRUE
andFALSE
. SinceT
andF
might have been assigned other values than the default, such a conversion would be highly problematic.On the other hand, currently,
T
andF
are just left as is, without message to the user, which is probably also not the thing we would expect from styler.To conclude, checking for the usage of
T
andF
and return a warning might be a reasonable way to go, so the user can resolve the problem manually.The text was updated successfully, but these errors were encountered: