https://github.com/rtyley/bfg-repo-cleaner
https://github.com/newren/git-filter-repo/
https://github.com/mpadge/dotfiles/blob/main/system/git-big-script.bash
| ``` r | |
| ## Simula 200 distancias | |
| set.seed(123) | |
| distancias <- runif(n = 200, min = 0.1, max = 10) | |
| mean(distancias) | |
| #> [1] 5.11328 | |
| ## Muestrea sólo 20 puntos | |
| di <- sample(distancias, size = 20) |
| release_bullets <- function() { | |
| c( | |
| "Run `goodpractice::gp()`", | |
| "Run `extrachecks::extrachecks()` from https://github.com/JosiahParry/extrachecks" | |
| "`devtools::release()`" | |
| ) | |
| } |
| --- | |
| title: "Untitled" | |
| author: "Francisco Rodriguez-Sanchez" | |
| date: "Thursday, January 22, 2015" | |
| output: html_document | |
| --- | |
| <style type="text/css"> | |
| body, td { |
| library(dismo) | |
| # Get elevation data from the internet for specified coordinates | |
| elev <- getData("SRTM", download=T, lon=-76.6, lat=18.1) | |
| # Specify desired extent | |
| ext <- c(-76.68, -76.65, 18.08, 18.11) | |
| ext2 <- c(-76.675, -76.655, 18.088, 18.10) # for plotting | |
| ## from: https://logfc.wordpress.com/2017/03/15/adding-figure-labels-a-b-c-in-the-top-left-corner-of-the-plotting-region/ | |
| fig_label <- function(text, region="figure", pos="topleft", cex=NULL, ...) { | |
| region <- match.arg(region, c("figure", "plot", "device")) | |
| pos <- match.arg(pos, c("topleft", "top", "topright", | |
| "left", "center", "right", | |
| "bottomleft", "bottom", "bottomright")) | |
| if(region %in% c("figure", "device")) { |
Git and GitHub (Hadley Wickham): http://r-pkgs.had.co.nz/git.html
R development using GitHub (Gabor Csardi): https://github.com/MangoTheCat/github-workshop
Working with RStudio, Git, GitHub (STAT 545): http://stat545-ubc.github.io/git00_index.html
Version control with git (R. Fitzjohn): http://nicercode.github.io/2014-02-13-UNSW/lessons/70-version-control/
Version control with Git (Software Carpentry): http://software-carpentry.org/v5/novice/git/index.html
| library(usethis) | |
| create_package("templateRpackage") | |
| ## Use git & create repo on GitHub | |
| use_git() | |
| use_github(organisation = "EcologyR") | |
| ## Create README |