# NOT RUN {
# might fail if API is not available
cir_img("CCO", dir = tempdir()) # SMILES
# multiple query strings and different formats
query = c("Glyphosate", "Isoproturon", "BSYNRYMUTXBXSQ-UHFFFAOYSA-N")
cir_img(query, dir = tempdir(), bgcolor = "transparent", antialising = 0)
# all parameters
query = "Triclosan"
cir_img(query,
dir = tempdir(),
format = "png",
width = 600,
height = 600,
linewidth = 5,
symbolfontsize = 30,
bgcolor = "red",
antialiasing = FALSE,
atomcolor = "green",
bondcolor = "yellow",
csymbol = "all",
hsymbol = "all",
hcolor = "purple",
header = "My funky chemical structure..",
footer = "..is just so awesome!",
frame = 1,
verbose = TRUE)
# }
Run the code above in your browser using DataLab