Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no "pdf" quick-save on macos #202

Open
r2evans opened this issue Jan 3, 2025 · 3 comments
Open

no "pdf" quick-save on macos #202

r2evans opened this issue Jan 3, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@r2evans
Copy link

r2evans commented Jan 3, 2025

Describe the bug

Similar to #136, there is no quick save to PDF option.

On further play ... should this instead be FR: add quick save to PDF option?

Screenshots

image

Environment

  • OS: macos sequoia 15.2
  • Browser: chrome 131.0.6778.205
  • R version: 4.3.3
  • httpgd version: 2.0.2

Additional context

Per the other issue, cairo is available and recognized, and I can use (e.g.) cairo_pdf interactively.

capabilities()
#        jpeg         png        tiff       tcltk         X11        aqua    http/ftp     sockets      libxml        fifo      cledit       iconv         NLS       Rprof     profmem 
#        TRUE        TRUE        TRUE        TRUE        TRUE        TRUE        TRUE        TRUE       FALSE        TRUE       FALSE        TRUE        TRUE        TRUE        TRUE 
#       cairo         ICU long.double     libcurl 
#        TRUE        TRUE       FALSE        TRUE 
grDevices::dev.capabilities()
# $semiTransparency
# [1] TRUE
# $transparentBackground
# [1] "semi"
# $rasterImage
# [1] "yes"
# $capture
# [1] FALSE
# $locator
# [1] FALSE
# $events
# character(0)
# $patterns
# [1] FALSE
# $clippingPaths
# [1] FALSE
# $masks
# [1] FALSE
# $compositing
# [1] FALSE
# $transformations
# [1] FALSE
# $paths
# [1] FALSE
# $glyphs
# [1] FALSE
@r2evans r2evans added the bug Something isn't working label Jan 3, 2025
@r2evans
Copy link
Author

r2evans commented Jan 3, 2025

Incidentally, I've confirmed:

$ brew list | grep -E 'libtiff|cairo|png'
cairo
libpng
libtiff

and XQuartz-2.8.5 is installed (and all of this was done before I attempted to install httpgd).

install/compile log
> install.packages("httpgd")
also installing the dependencyunigdPackages which are only available in source form, and may need compilation of C/C++/Fortran:unigd’ ‘httpgdDo you want to attempt to install these from sources? (Yes/no/cancel) yes
installing the source packagesunigd’, ‘httpgdtrying URL 'https://packagemanager.posit.co/cran/latest/src/contrib/unigd_0.1.2.tar.gz'
Content type 'binary/octet-stream' length 788799 bytes (770 KB)
==================================================
downloaded 770 KB

trying URL 'https://packagemanager.posit.co/cran/latest/src/contrib/httpgd_2.0.2.tar.gz'
Content type 'binary/octet-stream' length 336509 bytes (328 KB)
==================================================
downloaded 328 KB

* installing *source* packageunigd...
** packageunigdsuccessfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC
Using PKG_LIBS=-L/opt/homebrew/Cellar/cairo/1.18.2/lib -lcairo -lm -ldl -framework CoreFoundation -framework ApplicationServices -L/opt/homebrew/Cellar/fontconfig/2.15.0/lib -lfontconfig -lexpat -L/opt/homebrew/Cellar/libxext/1.3.6/lib -lXext -L/opt/homebrew/Cellar/libxrender/0.9.11/lib -lXrender -L/opt/homebrew/Cellar/libx11/1.8.10/lib -lX11 -L/opt/homebrew/Cellar/libxcb/1.17.0/lib -lxcb-render -lxcb-shm -lxcb -L/opt/homebrew/Cellar/libxau/1.0.11/lib -lXau -L/opt/homebrew/Cellar/libxdmcp/1.1.5/lib -lXdmcp -L/opt/homebrew/Cellar/pixman/0.44.2/lib -lpixman-1 -lm -L/opt/homebrew/opt/freetype/lib -lfreetype -lbz2 -L/opt/homebrew/opt/libpng/lib -lpng16 -lz
Using PKG_LIBTIFF_CFLAGS=-I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include
Using PKG_LIBTIFF_LIBS=-L/opt/homebrew/opt/libtiff/lib -ltiff -ltiffxx 
** libs
using C++ compiler:Apple clang version 16.0.0 (clang-1600.0.26.6)’
using C++14
using SDK: ‘’
rm -f unigd.so base_64.o compress.o cpp11.o draw_data.o page_store.o plot_history.o r_thread_posix.o r_thread_win32.o renderer_cairo.o renderer_json.o renderer_meta.o renderer_strings.o renderer_svg.o renderer_tikz.o renderers.o unigd.o unigd_dev.o unigd_external.o uuid.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c base_64.cpp -o base_64.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c compress.cpp -o compress.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cpp11.cpp -o cpp11.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c draw_data.cpp -o draw_data.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c page_store.cpp -o page_store.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c plot_history.cpp -o plot_history.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c r_thread_posix.cpp -o r_thread_posix.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c r_thread_win32.cpp -o r_thread_win32.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_cairo.cpp -o renderer_cairo.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_json.cpp -o renderer_json.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_meta.cpp -o renderer_meta.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_strings.cpp -o renderer_strings.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_svg.cpp -o renderer_svg.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderer_tikz.cpp -o renderer_tikz.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c renderers.cpp -o renderers.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c unigd.cpp -o unigd.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c unigd_dev.cpp -o unigd_dev.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c unigd_external.cpp -o unigd_external.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/opt/homebrew/Cellar/cairo/1.18.2/include/cairo -I/opt/homebrew/Cellar/fontconfig/2.15.0/include -I/opt/homebrew/Cellar/libxext/1.3.6/include -I/opt/homebrew/Cellar/xorgproto/2024.1/include -I/opt/homebrew/Cellar/libxrender/0.9.11/include -I/opt/homebrew/Cellar/libx11/1.8.10/include -I/opt/homebrew/Cellar/libxcb/1.17.0/include -I/opt/homebrew/Cellar/libxau/1.0.11/include -I/opt/homebrew/Cellar/libxdmcp/1.1.5/include -I/opt/homebrew/Cellar/pixman/0.44.2/include/pixman-1 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -DXML_STATIC -I/opt/homebrew/opt/libtiff/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.3/include -I/opt/homebrew/opt/jpeg-turbo/include -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/systemfonts/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c uuid.cpp -o uuid.o
clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o unigd.so base_64.o compress.o cpp11.o draw_data.o page_store.o plot_history.o r_thread_posix.o r_thread_win32.o renderer_cairo.o renderer_json.o renderer_meta.o renderer_strings.o renderer_svg.o renderer_tikz.o renderers.o unigd.o unigd_dev.o unigd_external.o uuid.o -L/opt/homebrew/Cellar/cairo/1.18.2/lib -lcairo -lm -ldl -framework CoreFoundation -framework ApplicationServices -L/opt/homebrew/Cellar/fontconfig/2.15.0/lib -lfontconfig -lexpat -L/opt/homebrew/Cellar/libxext/1.3.6/lib -lXext -L/opt/homebrew/Cellar/libxrender/0.9.11/lib -lXrender -L/opt/homebrew/Cellar/libx11/1.8.10/lib -lX11 -L/opt/homebrew/Cellar/libxcb/1.17.0/lib -lxcb-render -lxcb-shm -lxcb -L/opt/homebrew/Cellar/libxau/1.0.11/lib -lXau -L/opt/homebrew/Cellar/libxdmcp/1.1.5/lib -lXdmcp -L/opt/homebrew/Cellar/pixman/0.44.2/lib -lpixman-1 -lm -L/opt/homebrew/opt/freetype/lib -lfreetype -lbz2 -L/opt/homebrew/opt/libpng/lib -lpng16 -lz -L/opt/homebrew/opt/libtiff/lib -ltiff -ltiffxx -lpng -lz -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: ignoring duplicate libraries: '-lm', '-lz'
installing to /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/00LOCK-unigd/00new/unigd/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (unigd)

* installing *source* packagehttpgd...
** packagehttpgdsuccessfully unpacked and MD5 sums checked
** using staged installation
** libs
using C++ compiler:Apple clang version 16.0.0 (clang-1600.0.26.6)’
using C++14
using SDK: ‘’
rm -f httpgd.so cpp11.o httpgd.o httpgd_rng.o httpgd_webserver.o unigd_impl.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilib -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/unigd/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/AsioHeaders/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c cpp11.cpp -o cpp11.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilib -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/unigd/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/AsioHeaders/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c httpgd.cpp -o httpgd.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilib -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/unigd/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/AsioHeaders/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c httpgd_rng.cpp -o httpgd_rng.o
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilib -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/unigd/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/AsioHeaders/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c httpgd_webserver.cpp -o httpgd_webserver.o
httpgd_webserver.cpp:22:49: warning: unused function 'read_txt' [-Wunused-function]
   22 | inline std::experimental::optional<std::string> read_txt(const std::string &filepath)
      |                                                 ^~~~~~~~
In file included from httpgd_webserver.cpp:2:
./httpgd_webserver.h:81:7: warning: private field 'm_last_upid' is not used [-Wunused-private-field]
   81 |   int m_last_upid = -1;
      |       ^
./httpgd_webserver.h:82:8: warning: private field 'm_last_active' is not used [-Wunused-private-field]
   82 |   bool m_last_active = true;
      |        ^
3 warnings generated.
clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -Ilib -DFMT_HEADER_ONLY -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/unigd/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/cpp11/include' -I'/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/AsioHeaders/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c unigd_impl.cpp -o unigd_impl.o
clang++ -arch arm64 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o httpgd.so cpp11.o httpgd.o httpgd_rng.o httpgd_webserver.o unigd_impl.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/00LOCK-httpgd/00new/httpgd/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (httpgd)

The downloaded source packages are in/private/var/folders/3f/0hlmq7rx34ddjqtlc1lqbxl80000gn/T/RtmpGHG4qz/downloaded_packages

@r2evans r2evans changed the title no "pdf" export on macos no "pdf" quick-save on macos Jan 3, 2025
@remlapmot
Copy link

Just checking you know you can access this through the Export option

CleanShot 2025-01-04 at 07 25 23@2x

And in VSCode through the command palette

CleanShot 2025-01-04 at 12 06 24@2x

then

CleanShot 2025-01-04 at 07 21 36@2x

@r2evans
Copy link
Author

r2evans commented Jan 4, 2025

I saw that option after submitting this issue, which is why I edited it to suggest perhaps this is more of a feature request to add "PDF" to the quick exports in the three-dots. I'm new to this package so hadn't fully explored it, forgive me for the rapid "bug".

From a UX perspective, I explored the dots and saw "SVG" and "PNG", so my gut reaction was that there should be a "PDF" there as well (or "PDF (letter)" or similar) as a quick macro for exporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants