Skip to content

Commit

Permalink
Drop 32-bit support; fix arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 18, 2024
1 parent ca3b546 commit 7fb440e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: unrtf
Type: Package
Title: Extract Text from Rich Text Format (RTF) Documents
Version: 1.4.4
Version: 1.4.5
Authors@R: c(
person("Jeroen", "Ooms", ,"jeroen@berkeley.edu", role = c("aut", "cre")),
person("Free Software Foundation, Inc", role = "cph"))
Expand Down
3 changes: 1 addition & 2 deletions R/unrtf.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ unrtf <- function(file = NULL, format = c("html", "text", "latex"), verbose = FA
bindir <- system.file("bin", package = "unrtf")
sharedir <- system.file("share", package = "unrtf")
setwd(bindir)
postfix <- if(is_windows()) .Machine$sizeof.pointer * 8
path <- file.path(bindir, paste0("unrtf", postfix))
path <- file.path(bindir, "unrtf")
outcon <- rawConnection(raw(0), "r+")
on.exit(close(outcon), add = TRUE)
if(verbose)
Expand Down
2 changes: 1 addition & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LIBUNRTF = \
libunrtf/malloc.o libunrtf/my_iconv.o libunrtf/output.o libunrtf/parse.o libunrtf/path.o \
libunrtf/unicode.o libunrtf/user.o libunrtf/util.o libunrtf/word.o

UNRTF = unrtf$(WIN)
UNRTF = unrtf

# Workaround for MacOS R 4.0 harding pcre2
SYSLIBS = $(subst -lpcre2-8,,$(LIBS))
Expand Down

0 comments on commit 7fb440e

Please sign in to comment.