From d527d5a0280021ca170924617a1a2bc86e8c707b Mon Sep 17 00:00:00 2001 From: nx10 <33600480+nx10@users.noreply.github.com> Date: Sun, 10 Mar 2024 15:51:10 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nx10/htt?= =?UTF-8?q?pgd@73392f89a78a7dfb960cb6e1bd9ecae7b7761d52=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/b02_rstudio.html | 18 +++++------ articles/b03_docker.html | 54 +++++++++++++++---------------- pkgdown.yml | 4 +-- reference/hgd_generate_token.html | 2 +- search.json | 2 +- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/articles/b02_rstudio.html b/articles/b02_rstudio.html index ea181b4..e0aca0e 100644 --- a/articles/b02_rstudio.html +++ b/articles/b02_rstudio.html @@ -111,19 +111,19 @@

TroubleshootingViewer-tab.

The list of graphics devices (dev.list()) will look something like this:

-
> dev.list()
-RStudioGD   agg_png    httpgd 
-        2         3         4 
+
> dev.list()
+RStudioGD   agg_png    httpgd 
+        2         3         4 

This can be easily solved by closing the current (RStudioGD) graphics device:

-
> dev.off()
-httpgd 
-     4 
+
> dev.off()
+httpgd 
+     4 

After that dev.list() should only show a httpgd device:

-
> dev.list()
-httpgd 
-     4 
+
> dev.list()
+httpgd 
+     4 

The problem should not reappear afterwards, even after resizing the pane.

diff --git a/articles/b03_docker.html b/articles/b03_docker.html index 2f457ef..57249a9 100644 --- a/articles/b03_docker.html +++ b/articles/b03_docker.html @@ -98,19 +98,19 @@

Build a docker image
FROM r-base:latest
-
-# Install httpgd and dependent packages.
-RUN apt-get update \
-    && apt-get install -y --no-install-recommends \
-    libfontconfig1-dev \
-    && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
-    && install2.r --error --skipinstalled --ncpu -1 \
-    httpgd \
-    && rm -rf /tmp/downloaded_packages
+
FROM r-base:latest
+
+# Install httpgd and dependent packages.
+RUN apt-get update \
+    && apt-get install -y --no-install-recommends \
+    libfontconfig1-dev \
+    && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
+    && install2.r --error --skipinstalled --ncpu -1 \
+    httpgd \
+    && rm -rf /tmp/downloaded_packages

Run the docker build command from your shell to build a Docker image.

-
docker build . -f Dockerfile -t httpgd:test
+
docker build . -f Dockerfile -t httpgd:test

Create a container @@ -121,7 +121,7 @@

Create a container
docker run --rm -it -p 8888:8888 httpgd:test R

+
docker run --rm -it -p 8888:8888 httpgd:test R

Start httpgd server @@ -150,21 +150,21 @@

Set options in RprofileFor example, if you create a Dockerfile with the following contents, you can build an image with these options already set in the Rprofile.

-
FROM r-base:latest
-
-# Install httpgd and dependent packages.
-RUN apt-get update \
-    && apt-get install -y --no-install-recommends \
-    libfontconfig1-dev \
-    && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
-    && install2.r --error --skipinstalled --ncpu -1 \
-    httpgd \
-    && rm -rf /tmp/downloaded_packages
-
-# Set default values used in the httpgd::hgd() function.
-RUN echo 'options(httpgd.host = "0.0.0.0", httpgd.port = 8888)' >> /etc/R/Rprofile.site
-
-EXPOSE 8888
+
FROM r-base:latest
+
+# Install httpgd and dependent packages.
+RUN apt-get update \
+    && apt-get install -y --no-install-recommends \
+    libfontconfig1-dev \
+    && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
+    && install2.r --error --skipinstalled --ncpu -1 \
+    httpgd \
+    && rm -rf /tmp/downloaded_packages
+
+# Set default values used in the httpgd::hgd() function.
+RUN echo 'options(httpgd.host = "0.0.0.0", httpgd.port = 8888)' >> /etc/R/Rprofile.site
+
+EXPOSE 8888