test Rmd to highlight issue 1278 (https://github.com/r-lib/pkgdown/issues/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
carsUsing “<-” to assign, something strange happens.
In the first case, the “= cars %>” part goes missing.
# random comment
#
a = 4
# random comment
cars2 %
dplyr::filter(speed > 12)
#Additional content
carsIn the second case, we miss also a part of the second line (“dplyr::filter(cars, speed >”)
# random comment # a = 4 # random comment cars2 12) #Additional content cars