Skip to content

Commit

Permalink
Print libcurl version on attach
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Sep 2, 2020
1 parent b871094 commit 4634c1c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ VignetteBuilder: knitr
Depends:
R (>= 3.0.0)
LazyData: true
RoxygenNote: 7.1.0
RoxygenNote: 7.1.1
Encoding: UTF-8
Language: en-US
3 changes: 3 additions & 0 deletions R/onload.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
if (grepl("mingw", R.Version()$platform) && !file.exists(get_bundle())){
warning("No CA bundle found. SSL validation disabled.", call. = FALSE)
}
ssl <- sub("\\(.*\\)\\W*", "", curl_version()$ssl_version)
msg <- paste("Using libcurl", curl_version()$version, "with", ssl)
packageStartupMessage(msg)
}

#' @useDynLib curl R_set_bundle
Expand Down
1 change: 1 addition & 0 deletions tests/engine.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
library(curl)
19 changes: 19 additions & 0 deletions tests/engine.Rout.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(curl)
>

0 comments on commit 4634c1c

Please sign in to comment.