test_that("parse_options works", {
#### curl ####
opts <- echoconda::parse_options(path="curl")
testthat::expect_true(nrow(opts)>10 & nrow(opts)<15)
#### wget ####
opts <- echoconda::parse_options(path="wget")
testthat::expect_true(nrow(opts)>100 & nrow(opts)<200)
#### wget ####
opts <- echoconda::parse_options(path="gunzip")
testthat::expect_true(nrow(opts)>10 & nrow(opts)<20)
#### Conda env ####
#### python ####
path <- echoconda::find_packages(packages = "python",
conda_env = "echoR_mini",
return_path = TRUE)
opts <- echoconda::parse_options(path=path[['python']][1])
testthat::expect_true(nrow(opts)>20 & nrow(opts)<40)
#### Not working ####
# Don't follow --/- conventions as closely
# opts <- echoconda::parse_options(path="git")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.