-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use httr instead of httr2 for ability to set proxy config globally (#32)
* use httr instead of httr2 for ability to set proxy config globally * justfile - release specific types of data; cchmc hpc example
- Loading branch information
1 parent
41e0fea
commit e3c41f3
Showing
7 changed files
with
48 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ Imports: | |
terra, | ||
fs, | ||
httr, | ||
httr2, | ||
tidync, | ||
rlang, | ||
tibble, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#BSUB -W 30:00 | ||
#BSUB -n 2 | ||
#BSUB -M 24000 | ||
#BSUB -R "span[ptile=2]" | ||
#BSUB -e install_merra.out | ||
#BSUB -o install_merra.out | ||
|
||
module load singularity | ||
export APPC_INSTALL_DATA_FROM_SOURCE=1 | ||
|
||
echo "A reminder to ensure CCHMC_USERNAME and CCHMC_PASSWORD environment variables are set (or are defined in a .env file) for curl proxy settings" | ||
|
||
for year in "2023" "2022" "2021" "2020" "2019" "2018" "2017"; | ||
do | ||
rm -f ~/.local/share/R/appc/merra_$year.rds | ||
singularity exec ~/singr_latest.sif \ | ||
Rscript \ | ||
-e "if (file.exists('.env')) dotenv::load_dot_env()" \ | ||
-e "httr::set_config(httr::use_proxy('http://bmiproxyp.chmcres.cchmc.org', 80, Sys.getenv('CCHMC_USERNAME'), Sys.getenv('CCHMC_PASSWORD')))" \ | ||
-e "appc::install_merra_data('$year')" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters