Skip to content

plot formulas doesn't work anymore?  #314

@jordansread

Description

@jordansread

not sure why this test doesn't catch it:

test_that("points.gsplot accepts formulas",{
  gs <- gsplot() %>%
       points(y~x, data=list(x=-3:3,y=-3:3))
  expect_equal(gs$view$window$xlim, c(-3,3))
  expect_equal(gs$view$window$ylim, c(-3,3))
  gs

})

This fails outside of the test when printing the gs object:

> gs
 Show Traceback

 Rerun with Debug
 Error in formula.default(object, env = baseenv()) : invalid formula 

This is on master branch v ‘0.5.4’

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions