Skip to content

Commit bde91bf

Browse files
committed
Update data.table example to support opemnp
1 parent efb914b commit bde91bf

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/data.table/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2-
FROM rhub/r-minimal
2+
FROM ghcr.io/r-hub/r-minimal/r-minimal
33

4-
RUN installr -d -t zlib-dev data.table
4+
RUN echo -e 'PKG_CFLAGS+=-fopenmp\nPKG_LIBS+=-fopenmp\n' >> /tmp/Makevars && \
5+
R_MAKEVARS_USER=/tmp/Makevars \
6+
installr -a "libgomp zlib" -t "openmp-dev zlib-dev" -d data.table && \
7+
rm /tmp/Makevars
8+
9+
RUN R -q -e 'data.table::getDTthreads()'
10+
11+
RUN ldd /usr/local/lib/R/library/data.table/libs/data_table.so 2> /dev/null || true

0 commit comments

Comments
 (0)