<commit_before>#!/bin/sh

# Build R packages from source tar files on the EOL repo
# install to the first site library, .Library.site[1].

pkgs="c('eolts','isfs','eolsonde')"

rlib=$(R --vanilla --slave -e 'cat(.Library.site[1])')

if [ ! -d $rlib ]; then
    echo "$rlib not found"
    exit 1
fi

R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',repos='http://www.eol.ucar.edu/software/R',lib='$rlib'),error=function(e)q(status=1))"
<commit_msg>Change http: to https: in repo URL<commit_after>#!/bin/sh

# Build R packages from source tar files on the EOL repo
# install to the first site library, .Library.site[1].

pkgs="c('eolts','isfs','eolsonde')"

rlib=$(R --vanilla --slave -e 'cat(.Library.site[1])')

if [ ! -d $rlib ]; then
    echo "$rlib not found"
    exit 1
fi

R --vanilla -e "tryCatch(install.packages(pkgs=$pkgs,type='source',repos='https://www.eol.ucar.edu/software/R',lib='$rlib'),error=function(e)q(status=1))"

{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.008421052631578947, 'mean_word_length': 4.56140350877193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3739620', 'n_tokens_mistral': 377, 'n_tokens_neox': 364, 'n_words': 86}