Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xROI launch not interactive #8

Open
star96 opened this issue Jan 18, 2023 · 13 comments
Open

xROI launch not interactive #8

star96 opened this issue Jan 18, 2023 · 13 comments

Comments

@star96
Copy link

star96 commented Jan 18, 2023

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
Copy link
Author

star96 commented Jan 18, 2023

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
Copy link

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

@tuling21
Copy link

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

@star96
Copy link
Author

star96 commented Mar 22, 2023

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

@JayaPrakashKGP
Copy link

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

@star96
Copy link
Author

star96 commented Mar 22, 2023

Reverting to 4.1.2 worked for me

@nicbehr
Copy link

nicbehr commented Apr 5, 2023

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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

@JayaPrakashKGP
Copy link

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

@HANSSSY
Copy link

HANSSSY commented Jul 24, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants