Adds rstudio

This commit is contained in:
Aart van Halteren
2022-01-12 17:28:47 +01:00
parent 3ed8ea5f8a
commit fca3fd401d
44 changed files with 277 additions and 0 deletions

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1,83 @@
{
"clipr::clipr_output": {
"name": "Output to clipboard",
"package": "clipr",
"title": "",
"description": "Copies the console output of a selected expression to the system clipboard",
"interactive": false,
"binding": "clipr_output",
"ordinal": 2
},
"clipr::clipr_result": {
"name": "Value to clipboard",
"package": "clipr",
"title": "",
"description": "Copies the results of a selected expression to the system clipboard",
"interactive": false,
"binding": "clipr_result",
"ordinal": 1
},
"devtools::document": {
"name": "Document a package",
"package": "devtools",
"title": "",
"description": "A wrapper for `roxygen`'s `roxygen2::roxygenize()`",
"interactive": true,
"binding": "document",
"ordinal": 6
},
"devtools::run_examples": {
"name": "Run examples",
"package": "devtools",
"title": "",
"description": "Runs R code in examples using `devtools::run_examples()`",
"interactive": true,
"binding": "run_examples",
"ordinal": 7
},
"devtools::test_active_file": {
"name": "Run a test file",
"package": "devtools",
"title": "",
"description": "Run the current test file, using `devtools::test_active_file()`.",
"interactive": true,
"binding": "test_active_file",
"ordinal": 3
},
"devtools::test_coverage": {
"name": "Report test coverage for a package",
"package": "devtools",
"title": "",
"description": "Calculate and report the test coverage for the current package, using `devtools::test_coverage()`.",
"interactive": true,
"binding": "test_coverage",
"ordinal": 5
},
"devtools::test_coverage_active_file": {
"name": "Report test coverage for a file",
"package": "devtools",
"title": "",
"description": "Calculate and report test coverage for the current test file, using `devtools::test_coverage_active_file()`.",
"interactive": true,
"binding": "test_coverage_active_file",
"ordinal": 4
},
"reprex::reprex_addin": {
"name": "Render reprex...",
"package": "reprex",
"title": "",
"description": "Run `reprex::reprex()` to prepare a reproducible example for sharing.",
"interactive": true,
"binding": "reprex_addin",
"ordinal": 8
},
"reprex::reprex_selection": {
"name": "Reprex selection",
"package": "reprex",
"title": "",
"description": "Prepare reprex from current selection",
"interactive": false,
"binding": "reprex_selection",
"ordinal": 9
}
}

View File

@@ -0,0 +1,3 @@
{
"input": ""
}

View File

@@ -0,0 +1,3 @@
{
"objectDisplayType": 0
}

View File

@@ -0,0 +1,8 @@
{
"environmentPanelSettings": {
"scroll_position": 0,
"expanded_objects": [],
"sort_column": 0,
"ascending_sort": true
}
}

View File

@@ -0,0 +1,8 @@
{
"column-info": {
"names": [
"Source"
],
"activeColumn": "Source"
}
}

View File

@@ -0,0 +1,9 @@
{
"rightpanesize": {
"panelwidth": 1485,
"windowwidth": 1501,
"splitterpos": [
675
]
}
}

View File

@@ -0,0 +1,9 @@
1641994941352:library(DBI)
1641994972245:install.packages("RMariaDB")
1641995012317:library(DBI)
1641996642217:library(DBI)
1641996662061:con <- dbConnect(RMariaDB::MariaDB())
1641999172022:library(DBI)
1641999197937:con <- dbConnect(RMariaDB::MariaDB())
1642003072441:con <- dbConnect(RMariaDB::MariaDB(),host="db")
1642003092194:con <- dbConnect(RMariaDB::MariaDB(),user="root",host="db")

View File

@@ -0,0 +1,9 @@
{
"sortOrder": [
{
"columnIndex": 2,
"ascending": true
}
],
"path": "~"
}

View File

@@ -0,0 +1,7 @@
{
"installOptions": {
"installFromRepository": true,
"libraryPath": "/usr/local/lib/R/site-library",
"installDependencies": true
}
}

View File

@@ -0,0 +1,3 @@
{
"activeTab": -1
}

View File

@@ -0,0 +1,14 @@
{
"left": {
"splitterpos": 319,
"topwindowstate": "HIDE",
"panelheight": 724,
"windowheight": 798
},
"right": {
"splitterpos": 478,
"topwindowstate": "NORMAL",
"panelheight": 724,
"windowheight": 798
}
}

View File

@@ -0,0 +1,5 @@
{
"TabSet1": 0,
"TabSet2": 0,
"TabZoom": {}
}

View File

@@ -0,0 +1,2 @@
activeClientUrl="http://localhost:8787/"
portToken="97cf3656f4f2"

View File

@@ -0,0 +1,3 @@
{
"context_id": "6A00CEBA"
}

View File

@@ -0,0 +1 @@
1641999151566.000000

View File

@@ -0,0 +1 @@
/usr/local/lib/R

View File

@@ -0,0 +1,2 @@
abend="1"
active-client-id="cfb30428-aa38-4807-8006-002265146fba"

View File

@@ -0,0 +1,64 @@
CLICOLOR_FORCE="1"
CRAN="https://packagemanager.rstudio.com/cran/__linux__/focal/latest"
CWD="/"
DEFAULT_USER="rstudio"
DISPLAY=":0"
EDITOR="vi"
GIT_ASKPASS="rpostback-askpass"
HOME="/home/rstudio"
HOSTNAME="c54de4659c49"
LANG="en_US.UTF-8"
LD_LIBRARY_PATH="/usr/local/lib/R/lib:/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-11-openjdk-amd64/lib/server"
LN_S="ln -s"
LOGNAME="rstudio"
MAKE="make"
MPLENGINE="tkAgg"
PAGER="/usr/bin/pager"
PATH="/usr/lib/rstudio-server/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/rstudio-server/bin/postback"
RMARKDOWN_MATHJAX_PATH="/usr/lib/rstudio-server/resources/mathjax-27"
RSTUDIO="1"
RSTUDIO_CONSOLE_COLOR="256"
RSTUDIO_CONSOLE_WIDTH="104"
RSTUDIO_HTTP_REFERER="http://localhost:8787/"
RSTUDIO_PANDOC="/usr/lib/rstudio-server/bin/pandoc"
RSTUDIO_PROGRAM_MODE="server"
RSTUDIO_R_MODULE=""
RSTUDIO_R_PRELAUNCH_SCRIPT=""
RSTUDIO_R_REPO=""
RSTUDIO_R_VERSION_LABEL=""
RSTUDIO_SESSION_STREAM="rstudio-d"
RSTUDIO_USER_IDENTITY="rstudio"
RSTUDIO_USER_IDENTITY_DISPLAY="rstudio"
RSTUDIO_WINUTILS="bin/winutils"
RS_RPOSTBACK_PATH="/usr/lib/rstudio-server/bin/rpostback"
RS_SESSION_TMP_DIR="/var/run/rstudio-server/rstudio-rsession"
R_BROWSER="xdg-open"
R_BZIPCMD="/usr/bin/bzip2"
R_DOC_DIR="/usr/local/lib/R/doc"
R_GZIPCMD="/usr/bin/gzip"
R_HOME="/usr/local/lib/R"
R_INCLUDE_DIR="/usr/local/lib/R/include"
R_LIBS="/usr/local/lib/R/site-library:/usr/local/lib/R/library"
R_LIBS_SITE=""
R_LIBS_USER="~/R/x86_64-pc-linux-gnu-library/4.1"
R_PAPERSIZE="letter"
R_PDFVIEWER="/usr/bin/xdg-open"
R_PLATFORM="x86_64-pc-linux-gnu"
R_PRINTCMD="/usr/bin/lpr"
R_RD4PDF="times,inconsolata,hyper"
R_SESSION_TMPDIR="/tmp/RtmpL2PZYh"
R_SHARE_DIR="/usr/local/lib/R/share"
R_STRIP_SHARED_LIB="strip --strip-unneeded"
R_STRIP_STATIC_LIB="strip --strip-debug"
R_SYSTEM_ABI="linux,gcc,gxx,gfortran,gfortran"
R_TEXI2DVICMD="/usr/bin/texi2dvi"
R_UNZIPCMD="/usr/bin/unzip"
R_VERSION="4.1.2"
R_ZIPCMD="/usr/bin/zip"
S6_VERSION="v2.1.0.2"
SED="/usr/bin/sed"
SSH_ASKPASS="rpostback-askpass"
TAR="/usr/bin/tar"
TERM="xterm"
TZ="Etc/UTC"
USER="rstudio"

View File

@@ -0,0 +1,2 @@
packrat_mode_on="0"
r_profile_on_restore="1"

3
rstudio/.my.cnf Normal file
View File

@@ -0,0 +1,3 @@
[smartmeter]
user="root"
password="rootme"

17
rstudio/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM rocker/tidyverse:latest
RUN apt-get update \
&& apt-get install -y libmariadb-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
## install packages from CRAN (and clean up)
RUN Rscript -e "install.packages(c('tidyverse','purr','psych','lme4','lmerTest','broom','doBy','reshape','emmeans','effects','mlr','randomForest','glmnet','foreign'), repos='https://cran.rstudio.com/')" \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
EXPOSE 8787
CMD ["/init"]