Browse Source

prep for R 3.4

master
boB Rudis 5 years ago
parent
commit
f3e58f6197
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 5
      DESCRIPTION
  2. 2
      NAMESPACE
  3. 2
      R/htmltidy-package.r
  4. 22
      src/init.c

5
DESCRIPTION

@ -1,6 +1,6 @@
Package: htmltidy
Title: Tidy Up and Test XPath Queries on HTML and XML Content
Version: 0.3.1
Version: 0.3.2
Encoding: UTF-8
Authors@R: c(
person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre")),
@ -42,7 +42,6 @@ Depends:
R (>= 3.2.0)
License: MIT + file LICENSE
LazyData: true
Encoding: UTF-8
NeedsCompilation: yes
Suggests:
testthat,
@ -55,4 +54,4 @@ Imports:
XML,
htmlwidgets,
htmltools
RoxygenNote: 6.0.0
RoxygenNote: 6.0.1

2
NAMESPACE

@ -22,4 +22,4 @@ import(htmltools)
import(htmlwidgets)
import(xml2)
importFrom(Rcpp,sourceCpp)
useDynLib(htmltidy)
useDynLib(htmltidy, .registration=TRUE)

2
R/htmltidy-package.r

@ -19,7 +19,7 @@
#' @name htmltidy
#' @docType package
#' @author Bob Rudis (bob@@rud.is)
#' @useDynLib htmltidy
#' @useDynLib htmltidy, .registration=TRUE
#' @importFrom Rcpp sourceCpp
#' @import xml2 XML htmlwidgets htmltools
NULL

22
src/init.c

@ -0,0 +1,22 @@
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
/* FIXME:
Check these declarations against the C/Fortran source code.
*/
/* .Call calls */
extern SEXP htmltidy_tidy_html_int(SEXP, SEXP, SEXP);
static const R_CallMethodDef CallEntries[] = {
{"htmltidy_tidy_html_int", (DL_FUNC) &htmltidy_tidy_html_int, 3},
{NULL, NULL, 0}
};
void R_init_htmltidy(DllInfo *dll)
{
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
Loading…
Cancel
Save