detsutut / chroma

A R (+Matlab) toolkit to analyze and explore chromatic storytelling in any video source
GNU General Public License v3.0
11 stars 2 forks source link

issue installing library #7

Open segalinc opened 4 months ago

segalinc commented 4 months ago

trying install_github("detsutut/chroma", subdir="chromaR") I hade to manually install a bunch of dep as LICORIS is deprecated but then I get

── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/data/tmp/Rtmp9egoRR/remotes315d0670f88a74/detsutut-chroma-8ca47da/chromaR/DESCRIPTION’ ...
─  preparing ‘chromaR’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘chromaR_0.4.0.tar.gz’

Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘chromaR’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error: object ‘choose.files’ is not exported by 'namespace:utils'
Execution halted
ERROR: lazy loading failed for package ‘chromaR’
* removing ‘/usr/local/lib/R/site-library/chromaR’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/Rtmp9egoRR/file315d066ba7bc1e/chromaR_0.4.0.tar.gz’ had non-zero exit status
> 
detsutut commented 2 months ago

Hi, sorry for the delay.

Which OS are you using? I've been told that 'choose.files' has compatibility issues with MacOS users, but I still didn't have time to check it myself.

If that's the case, an immediate fix could be: 1) fork this repo 2) remove importFrom(utils,choose.files) from the NAMESPACE file 3) install Chroma from the forked repository with install_github("segalinc/your-forked-repo", subdir="chromaR") 4) pass file paths manually when calling getFrames

let me know if this helps