Skip to content

Commit

Permalink
Drop RCurl dependency and use curl instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jul 27, 2021
1 parent 0baa935 commit 7eb9869
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: gridtext
Type: Package
Title: Improved Text Rendering Support for 'Grid' Graphics
Version: 0.1.4.9000
Version: 0.1.4.9001
Authors@R:
person(
given = "Claus O.",
Expand All @@ -19,12 +19,12 @@ License: MIT + file LICENSE
Depends:
R (>= 3.5)
Imports:
curl,
grid,
grDevices,
markdown,
rlang,
Rcpp,
RCurl,
png,
jpeg,
stringr,
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# gridtext (development version)

- Transition to curl package and drop RCurl dependency

# gridtext 0.1.4.9000

No changes yet.
Expand Down
2 changes: 1 addition & 1 deletion R/read-image.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ read_image <- function(path) {

get_file <- function(path) {
if (is_url(path)) {
RCurl::getBinaryURL(path)
curl::curl_fetch_memory(path)$content
} else {
path
}
Expand Down
5 changes: 5 additions & 0 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

using namespace Rcpp;

#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif

// bl_make_null_box
BoxPtr<GridRenderer> bl_make_null_box(double width_pt, double height_pt);
RcppExport SEXP _gridtext_bl_make_null_box(SEXP width_ptSEXP, SEXP height_ptSEXP) {
Expand Down

0 comments on commit 7eb9869

Please sign in to comment.