marinebon / infographiqR

R functions for creation of interactive intelligent infographics, ie infographiq
https://marinebon.github.io/infographiqR
MIT License
11 stars 2 forks source link

`there is no package called ‘...’` on install #49

Closed 7yl4r closed 6 years ago

7yl4r commented 6 years ago

This is weird, and unfortunately '...' is difficult to google for:

library('devtools')
> install_local('~/infographiq')
Installing infographiq
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet  \
  CMD INSTALL '/tmp/RtmpIG6mLl/file6d667bb81f3f/infographiq'  \
  --library='/home/tylar/R/x86_64-pc-linux-gnu-library/3.4' --install-tests 

* installing *source* package ‘infographiq’ ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘...’
ERROR: lazy loading failed for package ‘infographiq’
* removing ‘/home/tylar/R/x86_64-pc-linux-gnu-library/3.4/infographiq’
* restoring previous ‘/home/tylar/R/x86_64-pc-linux-gnu-library/3.4/infographiq’
Installation failed: Command failed (1)

I also see this error when trying to build docs:

> pkgdown::build_site()
══ Building pkgdown site ═══════════════════════════════════════════════════════
Reading from: '/home/tylar/infographiq'
Writing to:   '/home/tylar/infographiq/docs'
── Initialising site ───────────────────────────────────────────────────────────
── Building home ───────────────────────────────────────────────────────────────
Reading 'TODO.md'
Writing 'index.html'
── Building function reference ─────────────────────────────────────────────────
Updating infographiq documentation
Loading infographiq
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘...’
Calls: withCallingHandlers ... withRestarts -> withOneRestart -> doWithOneRestart -> <Anonymous>
Execution halted
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘...’
7yl4r commented 6 years ago

Errored out in travis too so it's not just my system.

Is this from the import(...) and/or export(...) in NAMESPACE in a81601076ceeceed2ecc1e2fc08d75dde3a704d7? I don't know anything about that though. Do you know what's going on here @bbest ?

7yl4r commented 6 years ago

I see. Those generate from the R file docstrings. Thanks Ben!

bbest commented 6 years ago

Sorry about that. Fixed now by https://github.com/marinebon/infographiq/commit/385ae0a38dd727650ab3f5d49ca3d4f3554d6a7d. I must've typed that when figuring out the plotting functions as a placeholder:

@import ...
@export ...

The ... is also called the "ellipses" and is used to pass extra arguments between functions: