wvictor14 / planet

For inferring ancestry, gestational age, and cell type proportions from placental DNA methylation array data
4 stars 1 forks source link

install error on linux, unable to build sysdata db #2

Closed wvictor14 closed 3 years ago

wvictor14 commented 5 years ago

Installing on R 3.6.0 fails: https://github.com/r-lib/remotes/issues/374#issue-450492388

Installing on R 3.5.3, 3.5.1 works fine (only ones I tested).

Current workaround is to run:

withr::with_envvar(c(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"), 
  remotes::install_github('wvictor14/planet')
)
wvictor14 commented 5 years ago

install_github('wvictor14/planet') works fine on 3.6.1

wvictor14 commented 3 years ago

Still a problem.

Some info here and here

wvictor14 commented 3 years ago

I've discovered that this problem is unique to linux and not restricted to R version 3.

The workaround still works when installing on linux:

withr::with_envvar(c(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true"), remotes::install_github('wvictor14/planet') )

But for some reason users cannot access or import data objects with data()

I also tried updating sysdata.rda as some other threads mentioned this may be the reason, but this didn't solve anything.

wvictor14 commented 3 years ago

With PR #6 , install works without error. However data is still not properly exported.

Tested on Mac and Windows both work fine in all aspects AFAIK. This problem is still restricted to linux.

wvictor14 commented 3 years ago

I've discovered that on linux the data/ folder is not present after installing

wvictor14 commented 3 years ago

Fixed in #6