forked from loafle/openapi-generator-original
R echo client tests (#17629)
* add r echo api client sample * add r workflow * fix * add env * set r version * install curl * install dep * fix * comment out installation
This commit is contained in:
26
samples/client/echo_api/r/build_and_test.bash
Normal file
26
samples/client/echo_api/r/build_and_test.bash
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user