OpenDroneMap / FIELDimageR

FIELDimageR: A R package to analyze orthomosaic images from agricultural field trials. This package is a compilation of functions to analyze pos-mosaicking images from research fields, and allows to: crop the image; remove soil effect; build vegetation indices; rotate the image; build the plot shapefile; extract information for each plot; and evaluate stand count, canopy percentage, and plant height.
GNU General Public License v2.0
230 stars 89 forks source link

Install FIELDimageR.Extra #54

Open benlopez15 opened 8 months ago

benlopez15 commented 8 months ago

I am having trouble installing FIELDimageR.Extra and below is what I get. Any thoughts on this?   devtools::install_github("filipematias23/FIELDimageR.Extra")

devtools::install_github("filipematias23/FIELDimageR.Extra") Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD ── R CMD build ───────────────────────────────────────────────────────────────────────────────────── ✔ checking for file 'C:\Users\benlopez\AppData\Local\Temp\RtmpWAvMQ3\remotes18a0293c3591\filipematias23-FIELDimageR.Extra-42d2558/DESCRIPTION' ─ preparing 'FIELDimageR.Extra': ✔ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building 'FIELDimageR.Extra_0.0.2.tar.gz'

filipematias23 commented 8 months ago

Hey there,

Seems you need to install the package 'leafsync'.

Check this part in the msg:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called 'leafsync'

Hope it helps, Filipe

martinchez commented 8 months ago

It seems even after installing this library, the error still persists.

`

package ‘leaflet.providers’ successfully unpacked and MD5 sums checked package ‘viridis’ successfully unpacked and MD5 sums checked package ‘leaflet’ successfully unpacked and MD5 sums checked package ‘leafsync’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\HP\AppData\Local\Temp\RtmpqEnGDJ\downloaded_packages > devtools::install_github("filipematias23/FIELDimageR.Extra") Downloading GitHub repo filipematias23/FIELDimageR.Extra@HEAD ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file 'C:\Users\HP\AppData\Local\Temp\RtmpqEnGDJ\remotes29787a481cdc\filipematias23-FIELDimageR.Extra-590a964/DESCRIPTION' (445ms) ─ preparing 'FIELDimageR.Extra': ✔ checking DESCRIPTION meta-information ... ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building 'FIELDimageR.Extra_0.0.2.tar.gz' Installing package into ‘C:/Users/HP/AppData/Local/R/win-library/4.3’ (as ‘lib’ is unspecified) * installing *source* package 'FIELDimageR.Extra' ... ** 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 'caret' Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted ERROR: lazy loading failed for package 'FIELDimageR.Extra' * removing 'C:/Users/HP/AppData/Local/R/win-library/4.3/FIELDimageR.Extra' Warning message: In i.p(...) : installation of package ‘C:/Users/HP/AppData/Local/Temp/RtmpqEnGDJ/file29783b775e4c/FIELDimageR.Extra_0.0.2.tar.gz’ had non-zero exit status --   > | > >

`

filipematias23 commented 8 months ago

Hi there,

Now you need to install the package "caret" ... Normally, R says what is missing!

Check the msg: there is no package called 'caret'

You need to go installing any extra necessary package that your PC needs ... Just go checking the Error msg and installing them... ok

Hope it helps, Filipe

IJTaladrid commented 7 months ago

Thank you @filipematias23! I was having the same problem as @benlopez15, but after installing the package "leafsync", there are no more issues with the installation of the package 'FIELDimageR.Extra'.