openapi-generator/samples/client/echo_api/r/build_and_test.bash
William Cheng 25cfac0523
Update r petstore client test script (#20196)
* update R build and test script in petstore samples

* update
2024-11-28 17:20:37 +08:00

27 lines
995 B
Bash

#!/bin/bash
set -e
REPO=https://cloud.r-project.org
export R_LIBS_USER=$HOME/R
echo "R lib directory: $R_LIBS_USER"
mkdir $R_LIBS_USER || true
#Rscript -e "install.packages('jsonlite', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('httr', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('testthat', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('R6', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('base64enc', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('rlang', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('rjson', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('devtools', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('stringr', repos='$REPO', lib='$R_LIBS_USER')"
#Rscript -e "install.packages('lifecycle', repos='$REPO', lib='$R_LIBS_USER')"
#
R CMD build .
R CMD check *tar.gz --no-manual
R CMD INSTALL --preclean *tar.gz