Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add install2.r as option for installing r packages #94

Open
eeholmes opened this issue Oct 25, 2024 · 0 comments
Open

add install2.r as option for installing r packages #94

eeholmes opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@eeholmes
Copy link
Member

user uses r-requirements.txt file

        ; if test -f "renv.lock" ; then echo "renv not set-up yet" & \
        ; elif test -f "r-requirements.txt" ; then echo "Using r-requirements.txt" & \
        r_packages=$( awk 'NF && $1 !~ /^#/ { gsub(/^[ \t]+|[ \t]+$/, ""); split($0, a, ","); for (i in a) print a[i] }' r-requirements.txt ) \
        && install2.r --error --skipinstalled -n "$NCPUS" $r_packages \

r-requirements.txt

# List of packages
sf, dplyr, ggplot2

# Visualization packages
plotly, shiny

# Machine learning
randomForest

this processes the r-requirements.txt file

$( awk 'NF && $1 !~ /^#/ { gsub(/^[ \t]+|[ \t]+$/, ""); split($0, a, ","); for (i in a) print a[i] }' r-requirements.txt 
@eeholmes eeholmes added the enhancement New feature or request label Oct 25, 2024
@eeholmes eeholmes added this to the Maybe milestone Oct 25, 2024
@eeholmes eeholmes moved this to Backlog in py-rocket 3.0 Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant