Browse Source

one more try for ubuntu

master
boB Rudis 6 years ago
parent
commit
6c196ac543
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      src/Makevars
  2. 8
      src/htmltidy.cpp

4
src/Makevars

@ -1,3 +1,3 @@
PKG_CXXFLAGS=-I/usr/local/include -I/usr/include -I/opt/include -I/usr/include/tidy -I/usr/local/include/tidy
PKG_CPPFLAGS=-I/usr/local/include -I/usr/include -I/opt/include -I/usr/include/tidy -I/usr/local/include/tidy
#PKG_CXXFLAGS=-I/usr/local/include -I/usr/include -I/opt/include -I/usr/include/tidy -I/usr/local/include/tidy
#PKG_CPPFLAGS=-I/usr/local/include -I/usr/include -I/opt/include -I/usr/include/tidy -I/usr/local/include/tidy
PKG_LIBS=-ltidy

8
src/htmltidy.cpp

@ -1,6 +1,14 @@
#include <Rcpp.h>
#ifdef __linux__
#include <tidy/tidy.h>
#include <tidy/buffio.h>
#endif
#ifdef __APPLE__
#include <tidy.h>
#include <tidybuffio.h>
#endif
// libtidy docs:
// http://api.html-tidy.org/tidy/tidylib_api_5.2.0/tidyenum_8h.html#a3a1401652599150188a168dade7dc150

Loading…
Cancel
Save