phytooracle / phenotype_extraction_update

0 stars 0 forks source link

Missing package 'fields' #1

Closed jeffreydemieville closed 4 months ago

jeffreydemieville commented 4 months ago

Received error in install_fieldimager.R script:

\> # Get the filename of the generated tar.gz file for FIELDimageR
\> fieldimageR_filename <- list.files(pattern = "FIELDimageR_.*\\.tar\\.gz$")
\> install.packages(fieldimageR_filename, repos = NULL, type="source")
Installing package into ‘C:/Users/jdemieville/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
\* installing *source* package 'FIELDimageR' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'fields'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package 'FIELDimageR'
\* removing 'C:/Users/jdemieville/AppData/Local/R/win-library/4.3/FIELDimageR'
Warning in install.packages :
  installation of package ‘FIELDimageR_0.6.2.tar.gz’ had non-zero exit status

Resolved by manually installing 'fields' package using install.packages(c('fields'))

emmanuelgonz commented 4 months ago

File updated to include installation of "fields" R package in commit 2a4ecfc.