diff --git a/Alias_Docker.r b/Alias_Docker.r index c926bf6..6b9798f 100644 --- a/Alias_Docker.r +++ b/Alias_Docker.r @@ -2,7 +2,6 @@ #Docker images with all the R packages I have ever used alias r-full='docker run -ti --rm -v ./:/R-Code/ acg/r_full:latest bash' #Pull in the current directory into the docker image. Enter the image to modify with a r vim IDE preloaded. alias r-full-script='docker run -v ./:/R-Code/ acg/r_full:latest Rscript' #Run a r-file as a script rather than Interactively - #Docker images with minimal packages loaded to save space alias r-min='docker run -ti --rm -v ./:/R-Code/ acg/r_minimal:latest bash' alias r-min-script='docker run -v ./:/R-Code/ acg/r_minimal:latest Rscript' diff --git a/Dockerfile.Full b/Dockerfile.Full index 515a3dd..f6a7f81 100644 --- a/Dockerfile.Full +++ b/Dockerfile.Full @@ -12,9 +12,9 @@ RUN apt-get update \ && chmod 777 /usr/local/lib/R/site-library USER rdocker #Install all necessary packages for anaylysis, file manipulation, or for the required R packages to function. -RUN sudo apt-get install -y libmariadb-dev imagemagick ghostscript libpoppler-cpp-dev vim wget curl git libcurl4-openssl-dev build-essential texlive-full +RUN sudo apt-get install -y libmariadb-dev imagemagick ghostscript libpoppler-cpp-dev vim wget curl git libcurl4-openssl-dev build-essential texlive-full chromium-browser firefox #Install the R packages used in the R data creation scripts run on on the docker container. -RUN install2.r tidyverse fixest twang pdftools gt scales vars curl forecast uuid corrplot foreach cluster factoextra xtable Formula miscTools MASS kableExtra clisymbols fredr readxl lubridate tidycensus zipcodeR stargazer sandwich lmtest ggnewscale viridis ggthemes MatchIt optmatch aTSA tsDyn bruceR svars tidyquant zoo eia renv BiocManager miscTools logr && rm -rf /tmp/downloaded_packages +RUN install2.r tidyverse fixest twang pdftools gt scales vars curl forecast uuid corrplot foreach cluster factoextra xtable Formula miscTools MASS kableExtra clisymbols fredr readxl lubridate tidycensus zipcodeR stargazer sandwich lmtest ggnewscale viridis ggthemes MatchIt optmatch aTSA tsDyn bruceR svars tidyquant zoo eia renv BiocManager miscTools logr selenium selendir && rm -rf /tmp/downloaded_packages #Packages used in DCchoice nuclear contigent valuation paper which require a special install method #Icens is required to be installed using BiocManager for DCchoice to be installed. #"interval" required Icens to be installed diff --git a/VIM_R_IDE/.vimrc b/VIM_R_IDE/.vimrc index 0fa2b9e..c1c7883 100644 --- a/VIM_R_IDE/.vimrc +++ b/VIM_R_IDE/.vimrc @@ -11,4 +11,15 @@ call plug#begin('~/.vim/plugged') Plug 'frazrepo/vim-rainbow' call plug#end() let g:rainbow_active = 1 -" Initialize plugin system + +syntax on +"noremap n j +"noremap e k +"noremap i l +"noremap l i +"noremap k e +"noremap j n +nmap :vertical resize +1 +nmap :vertical resize -1 +nmap :resize +1 +nmap :resize -1