About the FIELDimageR category

This discussion group provides an online source of information about the FIELDimageR package.

The pipeline scripts and further information, as well as links to the original publication, can be found at the FIELDimageR Github page

FIELDimageR is 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 !!!

2 Likes

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

Here is what I have followed

  1. Installed Rtools35 (as compatible with R3.6.1)

    library(devtools)
    install_github(ā€œfilipematias23/FIELDimageRā€)

#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

#alternatively
library(remotes)
remotes::install_github(ā€œfilipematias23/FIELDimageRā€)

#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)

Can anyone help me to resolve this issue?

Hi @amithaldar87, thanks for asking.

This error is new to me. I am using R version 3.6.1 and it is working fine.
Try it first:

library(devtools)
install_github(ā€œOpenDroneMap/FIELDimageRā€)

If not, try:

Open a new R window:

remove.packages(ā€œdevtoolsā€)

Close this R window.

Open again a new R window:

install.packages(ā€œdevtoolsā€)
library(devtools)
install_github(ā€œfilipematias23/FIELDimageRā€)
library(FIELDimageR)

Close this R window.

If it doesnā€™t work, try reinstalling R ( https://brieger.esalq.usp.br/CRAN/ ) and RStudio ( https://rstudio.com/products/rstudio/ ). 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.

See if this works and let me know the errors.

1 Like

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ā€)

If it doesnā€™t work, try to use:

devtools::install_github(ā€œfilipematias23/FIELDimageRā€, type = ā€œsourceā€, dependencies = F)
install.packages(ā€œrasterā€)
install.packages(ā€œdoParallelā€)
install.packages(ā€œgrDevicesā€)
install.packages(ā€œplyrā€)
install.packages(ā€œBiocManagerā€)
BiocManager::install(ā€œEBImageā€)

Please, let me know if one of these two solutions worked for you.

Hi @filipematias,

As per your instructions, I have re-installed the updated versions of R-4.0.0 and RStudio-1.2.5042.

Followed all the methods to install.

install.packages(ā€œFIELDimageRā€)

Error is same as before

Warning in install.packages :
package ā€˜FIELDimageRā€™ is not available (for R version 4.0.0)

Through devtools

devtools::install_github(ā€œfilipematias23/FIELDimageRā€, type = ā€œsourceā€)
devtools::install_github(ā€œfilipematias23/FIELDimageRā€, type = ā€œsourceā€, dependencies = F)

install_github(ā€œfilipematias23/FIELDimageRā€)
install_github(ā€œOpenDroneMap/FIELDimageRā€)

Error from all aforesaid codes are same

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.

I am sorry, I have no idea.
I tried on other computers and 4.0.0 is working perfectly.

Could you try the following code again:

install.packages(ā€œrasterā€)
install.packages(ā€œdoParallelā€)
install.packages(ā€œgrDevicesā€)
install.packages(ā€œplyrā€)
install.packages(ā€œBiocManagerā€)
BiocManager::install(ā€œEBImageā€)
devtools::install_github(ā€œfilipematias23/FIELDimageRā€)

I will keep searching.
Best

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.

Thank you

Hi @amithaldar87

Could you try the manual way to install using tar.gz, please?

I made the following scheme to help you:

Install

1. Access the GitHub page: https://github.com/OpenDroneMap/FIELDimageR
2. Download the "FIELDimageR-master.zip"
3. Save this file in one folder from where you will open a R window
4. Open R and type:

unzip(ā€œFIELDimageR-master.zipā€)
file.rename(ā€œFIELDimageR-masterā€, ā€œFIELDimageRā€)
shell(ā€œR CMD build FIELDimageRā€)
install.packages(ā€œFIELDimageR_0.1.6.tar.gzā€, repos = NULL, type=ā€œsourceā€)
library(FIELDimageR)

5. Start use FIELDimageR.

Let me know if it works.
Best,
Filipe Matias

2 Likes

Hi @filipematias,

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.

Cheers

Amit

Thatā€™s awesome, you got it !!!

I am glad to know.

Let us know about your results and experience, also any suggestion to improve FIELDimageR is super welcome.

Best,
Filipe

1 Like

Hi Filipe,

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,

Jairo