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 version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Locale: en_GB.UTF-8 / en_GB.UTF-8 / en_GB.UTF-8 / C / en_GB.UTF-8 / en_GB.UTF-8
Package version:
formatR_1.11.1
Minimal Reproducible Example
At least some of the time (perhaps all of the time) having two empty lines between function call parens causes formatR to error. However, it appears to be valid R syntax (verified by running it in R).
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('formatR'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/formatR').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
It's not a limitation of R, but me. I feel it would be hard to support multiple empty lines as in your first example. For the second example, it looks like a bug. I don't know why two instances of print() were generated. @iqis Do you have time to investigate?
Minimal Reproducible Example
At least some of the time (perhaps all of the time) having two empty lines between function call parens causes formatR to error. However, it appears to be valid R syntax (verified by running it in R).
mre.R
Conversely, having only one empty line in the function call does not throw an error but does result in incorrect behaviour
mre2.R (before)
mre2.R (after)
By filing an issue to this repo, I promise that
xfun::session_info('formatR')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/formatR')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: