Last updated: 2019-12-18
Checks: 7 0
Knit directory: ggpackages/
This reproducible R Markdown analysis was created with workflowr (version 1.5.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.
The command set.seed(20191218) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.
Great job! Recording the operating system, R version, and package versions is critical for reproducibility.
Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.
Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
working directory clean
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the R Markdown and HTML files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view them.
| File | Version | Author | Date | Message |
|---|---|---|---|---|
| Rmd | b127624 | cgpu | 2019-12-18 | Adds updated Rmd for search term phylogenetic |
| html | 67975d7 | cgpu | 2019-12-18 | Build site. |
| html | b867c7f | cgpu | 2019-12-18 | Adds updated docs/about.html |
| Rmd | e28f357 | cgpu | 2019-12-18 | Updates about.Rmd with mini githubinstall tutorial |
| html | e28f357 | cgpu | 2019-12-18 | Updates about.Rmd with mini githubinstall tutorial |
| html | 238022e | cgpu | 2019-12-18 | Build site. |
| Rmd | f0bfc4b | cgpu | 2019-12-18 | Adds first batch of autogenerated {workflowr} files |
| html | f0bfc4b | cgpu | 2019-12-18 | Adds first batch of autogenerated {workflowr} files |
| Rmd | 01474f6 | cgpu | 2019-12-18 | Start workflowr project. |
The current project is a Hello-world of working with {workflowr} to publish Rmd-focused analyses.
library(githubinstall)
library(DT)
library(skimr)
library(BiocManager)
Bioconductor version 3.9 (BiocManager 1.30.10), ?BiocManager::install for help
Bioconductor version '3.9' is out-of-date; the current release version '3.10'
is available with R version '3.6'; see https://bioconductor.org/install
phylogeneticThe following brief tutorial will guide you through the functions of the {githubinstall} R package, a package to easily query GitHub and find all relevant R packages to your selected query search term of interest. The function githubinstall::gh_search_packages() returns the list of R packages on GitHub that the titles contains a given #keyword .
For example, if you want to search packages that are relevant to phylogenetic, run the following:
# Search Packages by a Keyword, in this example we search for "phylogenetic"
# install.packages("githubinstall") || found here: hoxo-m.github.io/githubinstall/
keyword <- "phylogenetic"
library(githubinstall)
pckges <- githubinstall::gh_search_packages(keyword)
Warning in fread(download_url, sep = "\t", header = FALSE, stringsAsFactors =
FALSE, : Found and resolved improper quoting out-of-sample. First healed line
4848: <<Puriney honfleuR "Evening, honfleuR" by Seurat>>. If the fields are not
quoted (e.g. field separator does not appear within any field), try quote="" to
avoid this warning.
skimr::skim(pckges)
| Name | pckges |
| Number of rows | 71 |
| Number of columns | 3 |
| _______________________ | |
| Column type frequency: | |
| character | 3 |
| ________________________ | |
| Group variables | None |
Variable type: character
| skim_variable | n_missing | complete_rate | min | max | empty | n_unique | whitespace |
|---|---|---|---|---|---|---|---|
| username | 0 | 1 | 5 | 19 | 0 | 60 | 0 |
| package_name | 0 | 1 | 3 | 17 | 0 | 70 | 0 |
| title | 0 | 1 | 26 | 451 | 0 | 69 | 0 |
Let’s try to add some interactivity to our retrieved table and convert the package names to clickable links that will take us to the github repo of the packages.
We will recontruct the string with the above pattern for all found packages, and add the html tag for redirecting so the pattern to recreate should look like this:
# Mutate the package names to create clickable links:
pckges$package_name <- paste0("<a href='https://github.com/",
pckges$username,
"/",
pckges$package_name,
"'/",
"target='blank",
"'>",
pckges$package_name,
"</a>")
Now we can inspect the packages that seem interesting by clicking the link. This will take us to the respective repository in GitHub.
DT::datatable(pckges[,-1], # the -1 to omit the username in the output table
escape = FALSE # this is required for the url
)
sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.5
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocManager_1.30.10 skimr_2.0.2 DT_0.10
[4] githubinstall_0.2.2 workflowr_1.5.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 tidyr_1.0.0 prettyunits_1.0.2 ps_1.3.0
[5] assertthat_0.2.1 zeallot_0.1.0 rprojroot_1.3-2 digest_0.6.23
[9] mime_0.7 R6_2.4.1 repr_1.0.2 backports_1.1.5
[13] evaluate_0.14 httr_1.4.1 highr_0.8 pillar_1.4.2
[17] rlang_0.4.2 curl_4.3 data.table_1.12.8 whisker_0.4
[21] callr_3.4.0 rmarkdown_2.0 desc_1.2.0 devtools_2.2.1
[25] stringr_1.4.0 htmlwidgets_1.5.1 shiny_1.4.0 compiler_3.6.0
[29] httpuv_1.5.2 xfun_0.11 pkgconfig_2.0.3 base64enc_0.1-3
[33] pkgbuild_1.0.6 htmltools_0.4.0 tidyselect_0.2.5 tibble_2.1.3
[37] fansi_0.4.0 crayon_1.3.4 dplyr_0.8.3 withr_2.1.2
[41] later_1.0.0 xtable_1.8-4 jsonlite_1.6 lifecycle_0.1.0
[45] git2r_0.26.1 magrittr_1.5 cli_2.0.0 stringi_1.4.3
[49] fs_1.3.1 promises_1.1.0 remotes_2.1.0 testthat_2.3.1
[53] ellipsis_0.3.0 vctrs_0.2.1 tools_3.6.0 glue_1.3.1
[57] purrr_0.3.3 crosstalk_1.0.0 fastmap_1.0.1 processx_3.4.1
[61] pkgload_1.0.2 yaml_2.2.0 sessioninfo_1.1.1 memoise_1.1.0
[65] knitr_1.26 usethis_1.5.1