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

Unable to use RMV2.0 package #19

Open
carlitosdavila opened this issue May 10, 2021 · 8 comments
Open

Unable to use RMV2.0 package #19

carlitosdavila opened this issue May 10, 2021 · 8 comments

Comments

@carlitosdavila
Copy link

Hi everyone,

I followed all the steps for the installation of the RMV2.0 package, however, when I launch the tool through the addins window in RStudio, I cannot select any option because the tool freezes. There is no chance to select an option. This is the warning error I get. Could you please help me with this issue?

Warning: Error in : $ operator is invalid for atomic vectors
46: file.path [C:\R\R-4.0.5\library\RMV2.0\shiny\guiApp/server.R#102]
45: [C:\R\R-4.0.5\library\RMV2.0\shiny\guiApp/server.R#102]
2: shiny::runApp
1: RMV2.0:::runRMV_UI
Warning: Error in $: $ operator is invalid for atomic vectors
116: file.path
115: reactive:path_save_dir_sc [C:\R\R-4.0.5\library\RMV2.0\shiny\guiApp/server.R#83]
99: path_save_dir_sc
97: renderText [C:\R\R-4.0.5\library\RMV2.0\shiny\guiApp/server.R#86]
96: func
83: renderFunc
82: output$save_dir_sc_out
2: shiny::runApp
1: RMV2.0:::runRMV_UI

Restarting R session...

@ConnorEnright
Copy link

Hi there, could you please share the R code/commands you are using to set up your workspace: Libraries installed etc.

I had encountered this error previously and solved by installing the Rtools40 toolchain bundle. This must be installed like other executable software and builds the R M&V 2.0 package into a usable format: https://cran.r-project.org/bin/windows/Rtools/

@meblesa
Copy link

meblesa commented Jun 3, 2021

Hi,

I am unable to run RMV2.0 package as well. I followed the installation steps but after I click on Addins -> RMV2.0 the website is launched and I can click on the buttons but I can't get the browser to show anything. I went back into RStudio and found the following error: (I did install Rtools already)

> RMV2.0:::runRMV_UI()
Starting the RMV2.0 App

Listening on http://127.0.0.1:6257
Warning: Error in $: $ operator is invalid for atomic vectors
  46: file.path
  45: <observer> [directory]
   2: shiny::runApp
   1: RMV2.0:::runRMV_UI
Warning: Error in $: $ operator is invalid for atomic vectors
  46: file.path
  45: <observer> [directory]
   2: shiny::runApp
   1: RMV2.0:::runRMV_UI

Any ideas on how to fix this?

@ConnorEnright
Copy link

Hi there,

Have you installed all the following packages as below?:

`install.packages("devtools")
library(devtools)

devtools::install_github("LBNL-ETA/RMV2.0")
devtools::install_version("shinyFiles", version = "0.6.2"
`

Note that a specific version of shinyFiles is required. R can also be quite sensitive regarding single vs double quotation marks, so you may need to try each if you have issues, but this has worked for me.

Let me know if this solves your issue!

@meblesa
Copy link

meblesa commented Jun 3, 2021

Thanks @ConnorEnright . I did miss the library(devtools) step. However, I still get the same problem with the Browser buttons not working and the Warning error is a bit different:

> RMV2.0:::runRMV_UI()
Registered S3 method overwritten by 'quantmod':
  method            from
  as.zoo.data.frame zoo 
Starting the RMV2.0 App
Loading required package: shiny

Attaching package: ‘shinydashboard’

The following object is masked from ‘package:graphics’:

    box

Use suppressPackageStartupMessages() to eliminate package startup messages.

Attaching package: ‘shinyjs’

The following object is masked from ‘package:shiny’:

    runExample

The following objects are masked from ‘package:methods’:

    removeClass, show


Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

    dataTableOutput, renderDataTable


Listening on http://127.0.0.1:4724
Warning: Error in : $ operator is invalid for atomic vectors
  46: file.path [XX]
  45: <observer> [XX]
   2: shiny::runApp
   1: RMV2.0:::runRMV_UI
Warning: Error in : $ operator is invalid for atomic vectors
  46: file.path [XX]
  45: <observer> [XX]
   2: shiny::runApp
   1: RMV2.0:::runRMV_UI
Warning: Error in $: $ operator is invalid for atomic vectors
  116: file.path
  115: <reactive:path_save_dir_sav> [XX]
   99: path_save_dir_sav
   97: renderText [XX]
   96: func
   83: renderFunc
   82: output$save_dir_sav_out
    2: shiny::runApp
    1: RMV2.0:::runRMV_UI

I put XX where my computer path is for privacy.

Not sure what is wrong with the installation. Any other recommendations that I can try?

Thanks,

@ConnorEnright
Copy link

Hmmmm, hard to tell exactly at this point, could you also share all the script including loading the packages, that way I can try to replicate if needed?

@ConnorEnright
Copy link

Have you made sure you are installing Version 0.6.2 of shinyFiles?

@meblesa
Copy link

meblesa commented Jun 14, 2021

Hi Connor thanks for your help I have redone all the steps and had no problem this time around. Thanks

@Descoeurs
Copy link

Thank you so much, i did it and it works now. Just follow the steps @ConnorEnright ConnorEnright mentionned and you will get through

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

4 participants