Skip to content

Commit

Permalink
Use rtools curl when available
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 23, 2024
1 parent 09f8c46 commit bc0fe06
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ jobs:
- {os: macOS-13, r: 'release', ssl-backend: SecureTransport}
- {os: macOS-14, r: 'release'}
- {os: macOS-14, r: 'release', ssl-backend: SecureTransport}
- {os: windows-latest, r: 'release', ssl-backend: openssl}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: '4.5'}
- {os: windows-latest, r: '4.5', ssl-backend: openssl}
- {os: windows-latest, r: '4.4'}
- {os: windows-latest, r: '4.4', ssl-backend: openssl}
- {os: windows-latest, r: '4.3'}
- {os: windows-latest, r: '4.3', ssl-backend: openssl}
- {os: windows-latest, r: '4.2'}
- {os: windows-latest, r: '4.1', ssl-backend: openssl}
- {os: windows-latest, r: '4.1'}
- {os: windows-latest, r: '4.0'}
- {os: windows-latest, r: '3.6'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
Expand Down
2 changes: 1 addition & 1 deletion R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ option_table <- (function(){
} else if(file.exists("../tools/option_table.txt")){
source("../tools/option_table.txt", env)
} else {
stop("Failed to find 'tools/option_table.txt' from:", getwd())
return(NULl)
}

option_table <- unlist(as.list(env))
Expand Down
7 changes: 7 additions & 0 deletions src/Makevars.ucrt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PKG_LIBS = `pkg-config --libs libcurl` -lwinhttp
PKG_CPPFLAGS = `pkg-config --cflags libcurl` -DCURL_STATICLIB -DSTRICT_R_HEADERS -DR_NO_REMAP

# Fallback for older rtools without
ifeq (,$(PKG_LIBS))
include Makevars.win
endif

0 comments on commit bc0fe06

Please sign in to comment.