inst/unitTests/runit.smiles.R

test.get.smiles <- function()
{
  m <- parse.smiles('CCCC')[[1]]
  s <- get.smiles(m)
  checkEquals(s, 'CCCC')
}

test.get.smiles2 <- function() {
  m1 <- parse.smiles("CCCNCC")[[1]]
  m2 <- parse.smiles("CNCCS")[[1]]
  mcs <- get.mcs(m1, m2)
  checkEquals("[CH2]NCC", get.smiles(mcs, smiles.flavors(c('Unique'))))
}

Try the rcdk package in your browser

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

rcdk documentation built on March 13, 2020, 1:30 a.m.