<commit_before>FROM sdal/ldap-ssh-c7
MAINTAINER "<NAME>" <<EMAIL>>

# Install R Package Prerequisites
RUN yum install -y openssl-devel unzip wget && \
    yum groupinstall -y 'Development Tools'

# Get Microsoft R Open
RUN cd /tmp/ && \
    wget https://mran.microsoft.com/install/mro/3.4.0/microsoft-r-open-3.4.0.tar.gz && tar -xvzf microsoft-r-open-3.4.0.tar.gz

RUN /tmp/microsoft-r-open/install.sh -a -u

# Configure CRAN Repositories
RUN echo "r <- getOption('repos'); r['CRAN'] <- 'https://cloud.r-project.org/'; options(repos = r);" >> ~/.Rprofile

COPY 01-setup_Rprofile_site.R 01-setup_Rprofile_site.R

RUN Rscript 01-setup_Rprofile_site.R

# Install R Package Prerequisites
RUN yum install -y postgresql-devel && \
    yum install -y libcurl libcurl-devel xml2 libxml2-devel && \
    yum install -y libjpeg-turbo-devel && \
    yum install -y gdal gdal-devel proj proj-devel proj-epsg && \
    yum install -y geos-devel v8-314-devel && \
    yum install -y openssl098e passwd pandoc && \
    yum install -y locales which && \
    yum install -y dejavu-sans-fonts dejavu-serif-font && \
    yum install -y ImageMagick ImageMagick-devel && \
    yum install -y libgfortran && \
    yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel

# pretty sure this breaks all my .libPath stuff
# because it installs r-core and r-core-devel
# RUN yum install -y R-java R-java-devel

RUN which java && \
    java -version && \
    R CMD javareconf

# for some reason mro will point to base R instead of mro
# this puts the Rprofile.site file in the 'correct' place
COPY Rprofile.site /usr/lib64/R/etc/Rprofile.site

CMD ["/usr/sbin/init"]<commit_msg>comment out Rprofile.site copy<commit_after>FROM sdal/ldap-ssh-c7
MAINTAINER "<NAME>" <<EMAIL>>

# Install R Package Prerequisites
RUN yum install -y openssl-devel unzip wget && \
    yum groupinstall -y 'Development Tools'

# Get Microsoft R Open
RUN cd /tmp/ && \
    wget https://mran.microsoft.com/install/mro/3.4.0/microsoft-r-open-3.4.0.tar.gz && tar -xvzf microsoft-r-open-3.4.0.tar.gz

RUN /tmp/microsoft-r-open/install.sh -a -u

# Configure CRAN Repositories
RUN echo "r <- getOption('repos'); r['CRAN'] <- 'https://cloud.r-project.org/'; options(repos = r);" >> ~/.Rprofile

COPY 01-setup_Rprofile_site.R 01-setup_Rprofile_site.R

RUN Rscript 01-setup_Rprofile_site.R

# Install R Package Prerequisites
RUN yum install -y postgresql-devel && \
    yum install -y libcurl libcurl-devel xml2 libxml2-devel && \
    yum install -y libjpeg-turbo-devel && \
    yum install -y gdal gdal-devel proj proj-devel proj-epsg && \
    yum install -y geos-devel v8-314-devel && \
    yum install -y openssl098e passwd pandoc && \
    yum install -y locales which && \
    yum install -y dejavu-sans-fonts dejavu-serif-font && \
    yum install -y ImageMagick ImageMagick-devel && \
    yum install -y libgfortran && \
    yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel

# pretty sure this breaks all my .libPath stuff
# because it installs r-core and r-core-devel
# RUN yum install -y R-java R-java-devel

RUN which java && \
    java -version && \
    R CMD javareconf

# for some reason mro will point to base R instead of mro
# this puts the Rprofile.site file in the 'correct' place
# maybe this was cuased by the R-java stuff above
# COPY Rprofile.site /usr/lib64/R/etc/Rprofile.site

CMD ["/usr/sbin/init"]
{'fraction_non_alphanumeric': 0.12570412096056924, 'fraction_numerical': 0.01956715090423955, 'mean_word_length': 3.0601684717208184, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '698906', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1228, 'n_words': 355}