IntegralEnvision / integral

Package for Integral functions
https://integralenvision.github.io/integral/
Other
0 stars 0 forks source link

ic_qa() doesn't show scripts in the folder pop-up box #79

Open schroedermark165 opened 1 year ago

schroedermark165 commented 1 year ago

Describe the bug When running the command alone with no inputs, the popup box that normally can select scripts in a folder does not show any scripts in the expected folder.

To Reproduce Run ic_qa() alone and use pop up to select .R script

Expected behavior I used to be able to see scripts in a folder and choose the one I want to generate a QA form for.

Screenshots image

Desktop (please complete the following information):

jzadra commented 1 year ago

I'm unable to replicate this. I see 4 .R files:

image

What version of the integral package are you running? Latest is 1.0.2.9001, so if you are behind try updating.

jzadra commented 1 year ago

Update from Mark: This is happening on the AVD GPU, but works fine on AVD Workspace

jzadra commented 1 year ago

I have traced this back to the filter argument in rstudioapi::selectFile(). The current function code is:

filepath <- rstudioapi::selectFile(caption = "Select File to QA", 
            label = "Run QA", path = rstudioapi::getActiveProject(), 
            filter = "R files (*.R | *.Rmd)", existing = TRUE)

Changing the "filter" argument to either filter = "(*.R | *.Rmd)" or filter = "R Files (*.R)" will show the .R files.

I am at a loss as to why this works on standard AVD workspace but not on GPU.

jzadra commented 1 year ago

Temporary solution on AVD GPU is to just supply the file path to ic_qa(), ie ic_qa("//integral/filepath/script.R")