test Rmd to highlight issue 1278 (r-lib/pkgdown#1278)
Using “=” to assign, the chunk is rendered properly:
# random comment
#
a = 4
# random comment
cars2 = cars %>%
dplyr::filter(speed > 12)
cars2 = dplyr::filter(cars,
speed > 12)
#Additional content
cars
Using “<-” to assign, something strange happens.
In the first case, the “= cars %>” part goes missing.
# random comment
#
a = 4
# random comment
cars2 <- cars %>%
dplyr::filter(speed > 12)
#Additional content
cars
In the second case, we miss also a part of the second line (“dplyr::filter(cars, speed >”)
# random comment
#
a = 4
# random comment
cars2 <- dplyr::filter(cars,
speed > 12)
#Additional content
cars