cjerzak / causalimages-software

causalimages: An R package for performing causal inference with image and image sequence data
https://arxiv.org/pdf/2310.00233
MIT License
16 stars 3 forks source link

Missing dependencies #1

Closed hans-ekbrand closed 1 year ago

hans-ekbrand commented 1 year ago
library(devtools)
Loading required package: usethis
> devtools::install_github(repo = "cjerzak/causalimages-software/causalimages")
devtools::install_github(repo = "cjerzak/causalimages-software/causalimages")
Downloading GitHub repo cjerzak/causalimages-software@HEAD
✔  checking for file ‘/tmp/Rtmp38nZ3n/remotes1cfe49a293bb/cjerzak-causalimages-software-0747d55/causalimages/DESCRIPTION’ (439ms)
─  preparing ‘causalimages’:
✔  checking DESCRIPTION meta-information
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
     NB: this package now depends on R (>= 3.5.0)
     WARNING: Added dependency on R >= 3.5.0 because serialized objects in
     serialize/load version 3 cannot be read in older versions of R.
     File(s) containing such objects:
       ‘causalimages/data/CausalImagesTutorialData.RData’
─  building ‘causalimages_0.1.tar.gz’

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘causalimages’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘keras’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package ‘causalimages’
* removing ‘/usr/local/lib/R/site-library/causalimages’
Error: Failed to install 'causalimages' from GitHub:
  (converted from warning) installation of package ‘/tmp/Rtmp38nZ3n/file1cfe5cbf4564/causalimages_0.1.tar.gz’ had non-zero exit status

I think the same goes for latex2exp

cjerzak commented 1 year ago

External packages should now be automatically downloaded if not present upon install but let me know if your experience says otherwise.