Skip to content

lbusett/testpkgdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published