# lctools 0.3-0

Resubmission to CRAN after the package was archived on 2025-11-28.

## CRAN compliance

* DESCRIPTION: added the `Authors@R` field, as now required by CRAN.
* Documentation: added package anchors to all Rd `\link{}` targets pointing to
  other packages, e.g. `\link[pscl]{zeroinfl}` (fixes the CRAN check
  NOTE/WARNING "Rd \link{} targets missing package anchors").
* Data: `GR.Municipalities.RData` and `VotesGR.RData` are now saved with `xz`
  compression (removes the "significantly better compression" check WARNING
  and reduces the source tarball by about 0.9 Mb).
* DESCRIPTION: relaxed the R dependency to R (>= 3.5.0); the package uses no
  features specific to more recent R versions (the data files require the
  serialization format of R >= 3.5.0).

## Documentation and vignettes

* Corrected spelling mistakes in the help pages (string, using, excludes,
  separate, respectively) and removed a mismatched reference URL in
  `lcorrel.Rd`.
* Vignettes are now built as HTML (`rmarkdown::html_vignette`) instead of PDF,
  removing the LaTeX build requirement and reducing package size.
* Vignettes: removed an obsolete reference to the retired 'rgdal' package,
  fixed typos, function-name casing (`moransI`, `moransI.w`) and an outdated
  thesis URL.

## Code and tests

* `random.test.data()`: replaced `1:vars.no-1` with `seq_len(vars.no - 1)` in
  the covariate loop. The old code relied on a silent no-op for the zero index;
  behaviour is unchanged.
* Removed a leftover roxygen stub comment block from `R/lat2w.R`.
* Added a testthat suite (26 assertions) covering `lat2w`, `w.matrix`,
  `moransI`, `moransI.w`, `spGini`, `spGini.w` and `random.test.data`,
  including the consistency of the two Moran's I implementations and the
  additivity of the spatial Gini decomposition.
