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
| #!/bin/bash | |
| sudo apt-get update -y && | |
| apt-get --with-new-pkgs upgrade -y && | |
| apt-get install -y gfortran \ | |
| libgmp-dev \ | |
| r-cran-ggplot2 \ | |
| r-cran-gridextra \ | |
| r-cran-cowplot \ | |
| r-cran-plyr \ | |
| r-cran-reshape2 \ |
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
| # Copy packages from previous minor version of R to new version of R library directory | |
| # from https://community.rstudio.com/t/reinstalling-packages-on-new-version-of-r/7670/3 | |
| lib_loc <- "C:\\Users\\tom\\Documents\\R\\win-library\\4.0" | |
| to_install <- unname(installed.packages(lib.loc = lib_loc)[, "Package"]) | |
| to_install | |
| install.packages(pkgs = to_install) |
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
| #!/bin/bash | |
| # update Ubuntu packages as root | |
| sudo apt-get update && sudo apt-get --with-new-pkgs upgrade -y | |
| # Ensure /usr/lib/R/site-library is writeable | |
| sudo chmod 777 -R /usr/lib/R/site-library | |
| # Update R packages as root | |
| sudo R -q -e "update.packages(ask = FALSE)" |
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
| dotR <- file.path(Sys.getenv("HOME"), ".R") | |
| if (!file.exists(dotR)) dir.create(dotR) | |
| M <- file.path(dotR, "Makevars.win") | |
| if (!file.exists(M)) file.create(M) | |
| cat("\n CXX14FLAGS += -mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2", | |
| file = M, sep = "\n", append = FALSE) |
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
| # In Terminal install clang | |
| # sudo apt-get install clang | |
| dotR <- file.path(Sys.getenv("HOME"), ".R") | |
| if (!file.exists(dotR)) dir.create(dotR) | |
| M <- file.path(dotR, "Makevars") | |
| if (!file.exists(M)) file.create(M) | |
| cat("\nCXX14FLAGS=-O3 -march=native -mtune=native -fPIC", | |
| "CXX14=clang++", # g++ # or clang++ but you may need a version postfix | |
| file = M, sep = "\n", append = TRUE) |
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
| # In Rtools 4.0 run | |
| # pacman -Syu | |
| # pacman -S mingw-w64-{i686,x86_64}-curl | |
| # pkg-config --libs libcurl | |
| install.packages("RCurl") |
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
| # In Rtools 4.0 run | |
| # pacman -Syu | |
| # pacman -S mingw-w64-{i686,x86_64}-libxml2 | |
| Sys.setenv(LOCAL_CPPFLAGS = "-I/mingw$(WIN)/include/libxml2") | |
| Sys.setenv(LIB_XML = "$(MINGW_PREFIX)") | |
| install.packages("XML") |
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
| ipconfig /flushdns | |
| netsh winsock reset |
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
| git update-git-for-windows |
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
| // Place your key bindings in this file to override the defaultsauto[] | |
| [ | |
| { | |
| "key": "ctrl+enter", | |
| "command": "workbench.action.terminal.runSelectedText" | |
| } | |
| ] |