massbays-tech / MassWateR

R package for working with Massachusetts surface water quality data
https://massbays-tech.github.io/MassWateR
Creative Commons Zero v1.0 Universal
11 stars 3 forks source link

tab_completeness error m_str_extents_ #11

Closed ben-wetherill closed 2 years ago

ben-wetherill commented 2 years ago

After loading the resdat and dqocomdat files from the example files, I get the following error for type summary:

> tab_completeness(resdat,dqocomdat,type="summary") Error in m_strextents(x, fontname, fontsize, bold, italic, fontfile) : function 'Rcpp_precious_remove' not provided by package 'Rcpp'

Also, if I run without type, R freezes > tab_completeness(resdat,dqocomdat)

fawda123 commented 2 years ago

@ben-wetherill unfortunately I cannot reproduce the error on my end and it is not being triggered in any of the package checks.

It might be related to this issue? https://support.rstudio.com/hc/en-us/articles/4415936301335-Resolving-Rcpp-precious-remove-error Try reinstalling the Rcpp package and running tab_completeness() again.

ben-wetherill commented 2 years ago

I reinstalled the Rcpp package and restarted R, and that resolved the issue.

fawda123 commented 2 years ago

@ben-wetherill ok, that's unfortunate it's a dependency issue since users may run into the same problem. Most of those problems should be taken care of by installing the package from R-universe (https://massbays-tech.r-universe.dev/ui#package:MassWateR) as noted in the package website on GitHub. The R-universe service is great because it creates a binary/compiled version of the package that handles the dependencies much better than installing from source via GitHub (e.g., remotes::install_github('massbays-tech/MassWateR')).