test_that("inferPackageRecord preserves fields: GitHub", {
# GitHub with no subdir.
df <- as.data.frame(readDcf(test_path("resources/descriptions/github")))
expect_snapshot(inferPackageRecord(df))
})
test_that("inferPackageRecord preserves fields: GitHub, pkg in subdir", {
# GitHub with subdir.
df <- as.data.frame(readDcf(test_path("resources/descriptions/github_subdir")))
expect_snapshot(inferPackageRecord(df))
})
test_that("inferPackageRecord preserves fields: GitLab", {
# GitLab with no subdir.
df <- as.data.frame(readDcf(test_path("resources/descriptions/gitlab")))
expect_snapshot(inferPackageRecord(df))
})
test_that("inferPackageRecord preserves fields: GitLab, pkg in subdir", {
# GitLab with subdir.
df <- as.data.frame(readDcf(test_path("resources/descriptions/gitlab_subdir")))
expect_snapshot(inferPackageRecord(df))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.