tests/testthat/ignore_plotStructures.R

test_that("plotStructures", {
	drugAnnot <- as(featureData(getAct(rcellminerData::drugData)), "data.frame")
	file <- tempfile() 
	
	pdf(file)
	plotStructures("94600", drugAnnot["94600","SMILES"])
	dev.off()
	
	expect_true(file.exists(file))
	
	file <- tempfile() 
	
	pdf(file)
	plotStructures(c("609699", "94600"), drugAnnot[c("609699", "94600"),"SMILES"])
	dev.off()
	
	expect_true(file.exists(file))
})

Try the rcellminer package in your browser

Any scripts or data that you put into this service are public.

rcellminer documentation built on Nov. 26, 2020, 2:02 a.m.