bbcrown / xROI

Delineate region of interest and extract time-series data from digital repeat photography images
12 stars 8 forks source link

xROI launch not interactive #8

Open star96 opened 1 year ago

star96 commented 1 year ago

After updating R (R version 4.2.2) and RStudio (2022.12.0 Build 353), when I try to launch xROI within RStudio it opens the app within the browser but it is greyed out/muted and only superficially interactive. I can still fill out data fields and switch tabs, but the example image set does not load and I cannot access any of my images through the image directory.

There is a warning message saying "Warning: Error in if: the condition has length > 1"

I have updated all packages, and tried running from the command line.

star96 commented 1 year ago

I just realized that this is the same issue as the closed issue "Cannot select images directory". I have tried loading through install_github as suggested and get the same error

JayaPrakashKGP commented 1 year ago

Hey, @star96 would you be able to resolve the issue?

tuling21 commented 1 year ago

I'm also interested in this problem, I don't know if there is a bug in the code

star96 commented 1 year ago

I had to use an older version of R/RStudio to get it to work

JayaPrakashKGP commented 1 year ago

Thanks for the quick response; which version did it worked for you?

star96 commented 1 year ago

Reverting to 4.1.2 worked for me

nicbehr commented 1 year ago

There seems to be a bug in the shiny app. I got an error raised in the R console after startup:

Warning: Error in if: the condition has length > 1 47: observe [.../app.R#96] [...]

Apparently there is an if-statement that checks truth on a vector of length 2. Specifically in the part below the variable temp is vector of a data.table and a data.frame.

if(class(tmp)!='try-error'&nrow(tmp)>0) { rv$filetbl <- tmp rv$filetbl[,path:=rv$imgs] }

Checking the class type with if() results in the error.

Changing the if-check to this resolved the problem for me:

if(any(class(tmp)!='try-error')&nrow(tmp)>0){ ... }

I don't know why this would be resolved with an older R-Studio version but for me it runs with this fix.

*edit: Format

DHRUVISEDHA commented 8 months ago

Hello @star96 , Dear Sir, I 'm being able to open the xROI window, but while I'm selecting mine phenocam images it stops, do you know how to resolve this issue...?

DHRUVISEDHA commented 8 months ago

Hello @JayaPrakashKGP , Dear Sir, I'm also trying to extract the phenometrics from mine phenocam images using xROI, but the new window that opens via Launch() xROI, can't be able to process my phenocam images, If you can please let me know what is the problem here..?

JayaPrakashKGP commented 8 months ago

Hello @JayaPrakashKGP , Dear Sir, I'm also trying to extract the phenometrics from mine phenocam images using xROI, but the new window that opens via Launch() xROI, can't be able to process my phenocam images, If you can please let me know what is the problem here..?

@DHRUVISEDHA Hi there! try with R version 4.1.2 (2021-11-01), it will resolve the issue!

DHRUVISEDHA commented 8 months ago

Dear @JayaPrakashKGP Sir, I'm using the same version only, but still when I'm loading my image the browser stops.

JayaPrakashKGP commented 8 months ago

@DHRUVISEDHA ok, let me see the issue! could you connect through my mail jpcoral@iitkgp.ac.in

HANSSSY commented 2 months ago

After updating R (R version 4.2.2) and RStudio (2022.12.0 Build 353), when I try to launch xROI within RStudio it opens the app within the browser but it is greyed out/muted and only superficially interactive. I can still fill out data fields and switch tabs, but the example image set does not load and I cannot access any of my images through the image directory.

There is a warning message saying "Warning: Error in if: the condition has length > 1"

I have updated all packages, and tried running from the command line.

Hi, I also met the same issue. I was wondering if you have any idea to resolve it? I also tried switching R to an older version. The error message showed "dependencies 'RCurl', 'raster', 'rgdal' are not available for package 'xROI'" when I ran library(xROI). It would be greatly helpful if someone could share their relevant experience to fix it. Thanks!