Skip to content

Commit

Permalink
fixes for CRAN, native symbols forcing
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Mar 21, 2023
1 parent 367ab7b commit 9b07e12
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: hexbin
Version: 1.28.2
Version: 1.28.3
Title: Hexagonal Binning Routines
Author: Dan Carr <dcarr@voxel.galaxy.gmu.edu>, ported by Nicholas
Lewin-Koh and Martin Maechler <maechler@stat.math.ethz.ch>,
Expand All @@ -17,4 +17,4 @@ Collate: lattice.R BTC.R BTY.R grid.hexagons.R grid.hexlegend.R hbox.R
License: GPL-2
VignetteBuilder: knitr
NeedsCompilation: yes
URL: http://github.com/edzer/hexbin
URL: https://github.com/edzer/hexbin
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
useDynLib(hexbin)
useDynLib(hexbin, .registration=TRUE)


import(methods)
Expand Down
4 changes: 2 additions & 2 deletions R/hexbin.s4.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ hexbin <-
c1 <- 2 * floor((xbins *shape)/sqrt(3) + 1.5001)
imax <- trunc((jmax*c1 -1)/jmax + 1)
lmax <- jmax * imax
ans <- .Fortran("hbin",
ans <- .Fortran(`hbin`,
x = as.double(x),
y = as.double(y),
cell = integer(lmax),
Expand Down Expand Up @@ -162,7 +162,7 @@ erode.hexbin <- function(hbin, cdfcut = 0.5)
n <- length(cell)
bdim <- hbin@dimen
L <- bdim[1] * bdim[2]
ans <- .Fortran("herode",
ans <- .Fortran(`herode`,
cell = as.integer(cell),
cnt = as.integer(cnt),
n = n,
Expand Down
2 changes: 1 addition & 1 deletion R/smoothHexbin.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ smooth.hexbin <- function(bin, wts = c(48, 4, 1))
pad <- rep.int(0:0, nmax - n)
cell <- c(nr * ncol + nc, pad)
cnt <- c(cnt, pad)
ans <- .Fortran("hsm",
ans <- .Fortran(`hsm`,
cell = as.integer(cell),
cnt = as.integer(cnt),
n = n,
Expand Down
2 changes: 1 addition & 1 deletion man/erode.hexbin.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ erode.hexbin(hbin, cdfcut = 0.5)
empty or have a count deficit on each erosion cycle. The erode vector
contain an erosion number for each cell. The value of erode is

6*erosion\_cycle\_ at\_ cell\_ removal - cell\_deficit\_at\_removal
6*erosion_cycle_at_cell_removal - cell_deficit_at_removal

Cells with low values are eroded first. The cell with the highest
erosion number is a candidate bivariate median. A few ties in erode
Expand Down
2 changes: 1 addition & 1 deletion src/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ static const R_FortranMethodDef FortranEntries[] = {
{NULL, NULL, 0}
};

void R_init_myLib(DllInfo *info) {
void R_init_hexbin(DllInfo *info) {
R_registerRoutines(info, NULL, NULL, FortranEntries, NULL);
R_useDynamicSymbols(info, FALSE);
R_forceSymbols(info, TRUE);
Expand Down

0 comments on commit 9b07e12

Please sign in to comment.