-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[STYLE_bug] When styling does not find a box::use, all lines are converted into NA #134
Comments
We can do either of two things:
|
box.linters::style_*
.
Recently this also happened when there was no empty line between box::use(
app/main,
)
context("Test main$format_duration()")
test_that("format_duration for NULL returns empty string", {
expect_equal(main$format_duration(NULL), c(""))
}) |
Can you give me more details on how to reproduce this problem? I created a # View: Shiny modules and related code.
# https://go.appsilon.com/rhino-project-structure
box::use(shiny)
# a
# b
1+1 Running # View: Shiny modules and related code.
# https://go.appsilon.com/rhino-project-structure
box::use(
shiny,
)
# a
# b
1+1 I added another file with the following content: # View: Shiny modules and related code.
# https://go.appsilon.com/rhino-project-structure
# this file only contains comments!
# with spaces! which was not modified with |
For most cases, it seems solved. The one that I recently found is a case when there are no empty lines at all. box::use(
app/main,
)
context("Test main$format_duration()")
test_that("format_duration for NULL returns empty string", {
expect_equal(main$format_duration(NULL), c(""))
}) Is changed into this: box::use(
app/main,
)
NA
NA
NA
NA |
I added the following two tests in #155 and fixed the line where there was a NA appearing
The pull request is blocked by codecov because the new linter version complains about explicit returns; so I had to remove |
0.10.2
converts:to
Originally posted by @radbasa in Appsilon/rhino#607 (comment)
The text was updated successfully, but these errors were encountered: