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 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.

Loading libraries

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

Searching for packages relevant to ggplot2

The 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 ggplot2, run the following:

#  Search Packages by a Keyword, in this example we search for "ggplot2" 
# install.packages("githubinstall") || found here: hoxo-m.github.io/githubinstall/

keyword <- "ggplot2"

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)
Data summary
Name pckges
Number of rows 227
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 3 18 0 190 0
package_name 0 1 3 31 0 219 0
title 0 1 13 348 0 220 0

🤔 Mmm, wouldn’t it be nice if the package name was actually a link..

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.