This discussion group provides an online source of information about the FIELDimageRpackage.
The pipeline scripts and further information, as well as links to the original publication, can be found at the FIELDimageR Github page
FIELDimageRis 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. It is a complete pipeline developed primarily to support curation, data extraction, research, and breeding programs wishing to utilize images for the cost-effective phenome-wide characterization of plant resources.
Please try to use informative subject lines for queries/comments!
For bug reports please include as much information as possible including any error messages.
Thank you for sharing, it looks very promising. I am trying to install the package in my RStudio with R version 3.6.1, unfortunately, its saying the FIELDimageR is not available for R version 3.6.1
#error
Failed to install āunknown packageā from GitHub:
Timeout was reached: [api.github.com] Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
#error
Failed to install āunknown packageā from GitHub:
Timeout was reached: [api.github.com] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
#if through conventional way install.packages("FIELDimageR")
#error
Warning in install.packages :
package āFIELDimageRā is not available (for R version 3.6.1)
If it doesnāt work, try reinstalling R ( https://brieger.esalq.usp.br/CRAN/ ) and RStudio ( Download RStudio | The Popular Open-Source IDE from Posit ). With this, you will have to reinstall all packages that you normally use. Something that I always like to do, when installing a new version I use āinstall R for the first timeā to keep all the versions that I normally use in my scripts.
FIELDimageR is working well for R version 3.6.1 and earlier. R version 3.6.3 works for some systems and not for others, I do not know yet and I am looking for answers. But, one solution that worked for some users is to install the newest R version 4.0.0 (https://brieger.esalq.usp.br/CRAN/) and use the following code:
install.packages(ādevtoolsā)
devtools::install_github(āfilipematias23/FIELDimageRā, type = āsourceā)
Error: Failed to install āunknown packageā from GitHub:
Timeout was reached: [api.github.com] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
I hope I am the only one who is facing this issue and you may recommend some alternative ways to resolve the issues. I also would like to convey you that I am working from a restrictive environment (Company IT Policy); however; I have a local admin account. Which means I should not face any issue to access any third party urls. But if this an issue, then I should be able to explain it to our IT. Your thoughts please.
No issues. I did follow all the steps, still not resolved the issue. Thank you so much for your attention and time to respond. I really appreciate it. Meanwhile, I will also try to find some solution.
This worked perfectly. Thank you so much Filipe for resolving the issue.
I was almost given up on it. I tried installing it manually through direct package installer using Zip, though Git, creating repository and many more but none of the hacks worked.
Thank you again for your attention and time. I will now start exploring the tools and will let you know if I am able to optimize it for forestry applications.
I am very interested into FieldImageR but I am having some difficulties trying to install it in Ubuntu. I installed R and Rstudio, and I followed the steps:
unzip(āFIELDimageR-master.zipā)
file.rename(āFIELDimageR-masterā, āFIELDimageRā)
shell(āR CMD build FIELDimageRā) # or system(āR CMD build FIELDimageRā)
install.packages(āFIELDimageR_0.2.0.tar.gzā, repos = NULL, type=āsourceā) # Make sure to use the right version (e.g. 0.2.0)
Though, the last step send me this error:
install.packages(āFIELDimageR_0.2.0.tar.gzā, repos = NULL, type=āsourceā)
Installing package into ā~/R/x86_64-pc-linux-gnu-library/3.6ā
(as ālibā is unspecified)
Warning: invalid package āFIELDimageR_0.2.0.tar.gzā
Error: ERROR: no packages specified
Warning in install.packages :
installation of package āFIELDimageR_0.2.0.tar.gzā had non-zero exit status
And I donāt know what to do (I know nothing on code). I wonder if you can help me.
Thanks for creating this! I started to use this last year and the āfieldCropā function worked fine. I am trying it again and I am getting an error that R cannot find the function. Any tips?
If the method above doesnāt work, use the next lines by downloading the FIELDimageR-master.zip file
setwd(ā~/FIELDimageR-master.zipā) # ~ is the path from where you saved the file.zip unzip(āFIELDimageR-master.zipā) file.rename(āFIELDimageR-masterā, āFIELDimageRā) shell(āR CMD build FIELDimageRā) # or system(āR CMD build FIELDimageRā) install.packages(āFIELDimageR_0.3.2.tar.gzā, repos = NULL, type=āsourceā)
But in both cases I found the attached error message. I need help to solve this issue.
Error Message:
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: object āelideā is not exported by ānamespace:maptoolsā
Execution halted
ERROR: lazy loading failed for package āFIELDimageRā
removing āC:/Users/ahasa/AppData/Local/R/win-library/4.3/FIELDimageRā
Warning message:
In i.p(ā¦) :
installation of package āC:/Users/ahasa/AppData/Local/Temp/RtmpQFwJcG/file5b0c1e624bc9/FIELDimageR_0.3.3.tar.gzā had non-zero exit status