ramhiser / sparsediscrim

Sparse and Regularized Discriminant Analysis in R
Other
15 stars 5 forks source link

Package PDF failing to build during devtools::check #42

Closed ramhiser closed 6 years ago

ramhiser commented 6 years ago

I first encountered this when running devtools::release(). Can reproduce it below with devtools::check().

> check(manual=TRUE)
 Updating sparsediscrim documentation
 Loading sparsediscrim
 Setting env vars --------------------------------------------------------------
 CFLAGS  : -Wall -pedantic
 CXXFLAGS: -Wall -pedantic
 Building sparsediscrim --------------------------------------------------------
 Running command /usr/local/Cellar/r/3.4.2/lib/R/bin/R
 Arguments:
 CMD
 build
 /Users/ramey/Dropbox/Rpackages/sparsediscrim
 --no-resave-data
  OK
 * preparing ‘sparsediscrim’:
  OK
 * checking for LF line-endings in source and make files and shell scripts
 * checking for empty or unneeded directories
 * building ‘sparsediscrim_0.2.5.tar.gz’

...

 ─  checking tests ...  Running ‘testthat.r’
     OK
 W  checking PDF version of manual
    LaTeX errors when creating PDF version.
    This typically indicates Rd problems.
 ✔  checking PDF version of manual without hyperrefs or index
ramhiser commented 6 years ago

Following this SO post, I ran R CMD Rd2pdf sparsediscrim > sparsediscrim-tex-build.log 2>&1.

Found a few warnings in the log file but no errors.

(see the transcript file for additional information)pdfTeX warning (dest): name
{Rfn.solve} has been referenced but does not exist, replaced by a fixed one

pdfTeX warning (dest): name{Rfn.ggplot} has been referenced but does not exist,
 replaced by a fixed one

pdfTeX warning (dest): name{Rfn.invcov.shrink} has been referenced but does not
 exist, replaced by a fixed one

pdfTeX warning (dest): name{Rfn.fast.svd} has been referenced but does not exis
t, replaced by a fixed one

{Rfn.solve} has been referenced but does not exist, replaced by a fixed one