This work was performed using r sessioninfo::platform_info()$version
and the following additional
packages:
pacman::p_load(char=c('tidyverse','fs', 'here')) pkgs <- abhiR::extract_pkgs() tmp <- sessioninfo::package_info(pkgs) %>% as.data.frame() %>% filter(package %in% pkgs, !is.na(ondiskversion)) tmp %>% mutate(ghuser = str_match(source, 'Github \\(([:alnum:]+)')[,2]) %>% mutate(package = ifelse(is.na(ghuser), package, paste(ghuser, package, sep='/'))) %>% glue::glue_data("{package} ({ondiskversion})") %>% paste(collapse='; ') %>% pander::pander()
if(sum(stringr::str_detect(tmp$source, 'Github'))>0){ cat('\n> `<username>/<packagename>` refers to a package sourced from Github, that can be installed using `remotes::install_github("<username>/<packagename>")`') }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.