Coder Social home page Coder Social logo

Comments (7)

wvictor14 avatar wvictor14 commented on June 16, 2024

I have discovered that the apps will run if started from R from bash, rather than directly in my rstudio-server console.

This made me think that maybe it is an issue with running shiny from Rstudio-server. So I updated to one of the recent rstudio-server dailies but still bug is not fixed

https://dailies.rstudio.com/rstudio/chocolate-cosmos/server/jammy-amd64/
rstudio-server-2024.04.2-755-amd64.deb

from shiny.

cpsievert avatar cpsievert commented on June 16, 2024

Do you see anything else in the viewer when running shiny::devmode(TRUE) before launching the app?

from shiny.

cpsievert avatar cpsievert commented on June 16, 2024

There might also be something weird with the default graphics device...

  • What happens when you run shiny::plotPNG(function() plot(1))? Do you get an error?
  • Does install.packages("ragg") fix it?

from shiny.

wvictor14 avatar wvictor14 commented on June 16, 2024

Hi @cpsievert, thank you for your help,

shiny::plotPNG(function() plot(1)) #runs without error
[1] "/tmp/RtmpmdNfhq/file78241653308.png"

I updated ragg to v1.3.2 (latest) and still error occurs

I tried running shiny::devmode(TRUE) before running the shiny example app and no informative messages appear in console / viewer

> shiny::devmode(TRUE);shiny::runExample('01_hello')
shiny devmode - Turning on shiny autoreload. To disable, call `options(shiny.autoreload = FALSE)`
This message is displayed once every 8 hours.

Listening on http://127.0.0.1:7135
shiny devmode - Using full shiny javascript file. To use the minified version, call `options(shiny.minified = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Turning off caching of Sass -> CSS compilation. To turn caching on, call `options(sass.cache = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Disabling the use of bslib precompiled themes. To be able to use precompiled themes, call `options(bslib.precompiled = TRUE)`
This message is displayed once every 8 hours.
shiny devmode - Enabling warnings about low color contrasts found inside `bslib::bs_theme()`. To suppress these warnings, set `options(bslib.color_contrast_warnings = FALSE)`
This message is displayed once every 8 hours.

from shiny.

cpsievert avatar cpsievert commented on June 16, 2024

Huh, ok, if you right-click -> Inspect -> Console do you see (JavaScript) errors?

from shiny.

jeremydudek avatar jeremydudek commented on June 16, 2024

Hello, I have a similar issue since, I am not able to launch the shiny app example.

R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252
[4] LC_NUMERIC=C LC_TIME=German_Switzerland.1252

time zone: Europe/Zurich
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bslib_0.7.0 shiny_1.8.1.1

loaded via a namespace (and not attached):
[1] digest_0.6.35 later_1.3.2 R6_2.5.1 httpuv_1.6.15 fastmap_1.2.0 magrittr_2.0.3
[7] cachem_1.1.0 memoise_2.0.1 htmltools_0.5.8.1 lifecycle_1.0.4 promises_1.3.0 cli_3.6.1
[13] xtable_1.8-4 sass_0.4.9 jquerylib_0.1.4 withr_3.0.0 compiler_4.3.1 rstudioapi_0.16.0
[19] tools_4.3.1 mime_0.12 Rcpp_1.0.12

And I only get this message :
Error in is.call(funBody[[idx]]) && as.character(funBody[[idx]][[1]]) ==  :   'length = 3' in coercion to 'logical(1)'

from shiny.

wvictor14 avatar wvictor14 commented on June 16, 2024

It is very strange but it seems that the error has went away after these few days...

I can update if encountered again, but otherwise feelfree to close this issue

from shiny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.