Coder Social home page Coder Social logo

Comments (3)

vnijs avatar vnijs commented on July 20, 2024

Does this happen when you run Radiant or when you run your fork?

from radiant.

kmezhoud avatar kmezhoud commented on July 20, 2024

I think for both. I reinstalled radiant 0.3.27 and run the same example as in my fork.
I restart R session and delete all object in Global env, .Rhistory and .RData.

readRDS can't read the path.

install.packages("radiant", repos = "http://vnijs.github.io/radiant_miniCRAN/", type = 'binary')
Restarting R session...
 library("radiant", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library")
radiant(app="base")
Loading required package: shiny
Listening on http://127.0.0.1:5688
Note: the specification for S3 class “AsIs” in package ‘BiocGenerics’ seems equivalent to one from package ‘jsonlite’: not turning on duplicate class definitions for this class.
Loading required package: DBI

<environment: namespace:clusterProfiler>
  class
      [3]
    [1]
....

.....
<environment: namespace:base>
message
call
Error in readRDS(fn) : error reading from connection
  <environment: namespace:httpuv>
conn
  [1]
  [2]
[1]
.....

I need to avoid lines between 130:160 in init.R

# else if (file.exists(paste0("~/r_sessions/r_", r_ssuid, ".rds"))) {
#   ## read from file if not in global
#   fn <- paste0(normalizePath("~/r_sessions"),"/r_", r_ssuid, ".rds")
#   rs <- readRDS(fn)
#   unlink(fn, force = TRUE)
#
#   if (length(rs$r_data) == 0)
#     r_data  <- init_state(reactiveValues())
#   else
#     r_data  <- do.call(reactiveValues, rs$r_data)
#
#   r_state <- rs$r_state
#   rm(rs)
# } else if (r_local && file.exists(paste0("~/r_sessions/r_", mrsf, ".rds"))) {
#
#   ## restore from local folder but assign new ssuid
#   fn <- paste0(normalizePath("~/r_sessions"),"/r_", mrsf, ".rds")
#   rs <- readRDS(fn)
#   #rs <- readRDS(fn)
#
#   unlink(fn, force = TRUE)
#
#   if (length(rs$r_data) == 0)
#     r_data  <- init_state(reactiveValues())
#   else
#     r_data  <- do.call(reactiveValues, rs$r_data)
#
#   r_state <- rs$r_state
#
#   ## don't navigate to same tab in case the app locks again
#   r_state$nav_radiant <- NULL
#   rm(rs)
# }

from radiant.

vnijs avatar vnijs commented on July 20, 2024

I don't see this issue in any version of Radiant. If your fork works when you uncomment those lines I assume you are fine. If not, please provide a reproducible example where Radiant throws an error (i.e., not your fork).

from radiant.

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.