dankelley / oce

R package for oceanographic processing
http://dankelley.github.io/oce/
GNU General Public License v3.0
145 stars 42 forks source link

cannot build with R 3.6.0 #1533

Closed dankelley closed 5 years ago

dankelley commented 5 years ago

I downloaded the latest R (3.6.0) and Rstudio (1.2.1335) and activated the "Build/More/Clean and Build" menu, and got as below. Since what I'm doing with the function registration was set up by following advice from the web, it seems likely to me that others will have had this problem, so I am hopeful that I can find a solution by searching the web with the error message as a key.

==> Rcpp::compileAttributes()

* Updated R/RcppExports.R

==> roxygen2::roxygenize('.', roclets = c('rd', 'collate', 'namespace', 'vignette'))

Loading oce
Error in getDLLRegisteredRoutines.DLLInfo(dll, addNames = FALSE) : 
  must specify DLL via a “DLLInfo” object. See getLoadedDLLs()
Calls: suppressPackageStartupMessages ... assignNativeRoutines -> getDLLRegisteredRoutines.DLLInfo
Execution halted

Exited with status 1.
dankelley commented 5 years ago

A workaround is given at https://github.com/klutometis/roxygen/issues/822#issuecomment-441425591 and repeated at https://github.com/stan-dev/rstantools/issues/52#issuecomment-470334095; the upshot is simple: do the following before the build.

pkgbuild::compile_dll()
devtools::document()