This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| align_plots <- function(...) { | |
| x <- patchwork::align_patches(lapply(rlang::ensyms(..., .named = TRUE), get)) | |
| rlang::env_bind(parent.frame(), !!!x) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add the code snippet below to your .bashrc file | |
| PINNED_ITEMS="$HOME/.bash_pinned" | |
| export HISTSIZE=$(( HISTSIZE + $(wc -l < $PINNED_ITEMS) )) | |
| HISTFILE="$PINNED_ITEMS" HISTCMD=0 history -r | |
| history -a | |
| unset PINNED_ITEMS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s <MINiML url> | tar -xzO | xq -r '.MINiML.Series["Supplementary-Data"][]["#text"]' | wget -i - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Get the R version from .Rdata/.rda files in which it was saved | |
| .Internal(loadInfoFromConn2(file("path/to/your/file.rdata")))$writer_version | |
| ## Get the R version from .RDS files in which it was saved | |
| .Internal(serializeInfoFromConn(file("path/to/your/file.RDS")))$writer_version |