lbusett / testpkgdown

test for pkgdown issue 1278

Home Page:https://lbusett.github.io/testpkgdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test

test Rmd to highlight issue 1278 (r-lib/pkgdown#1278)

Example

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

About

test for pkgdown issue 1278

https://lbusett.github.io/testpkgdown/