При запуске стандартного блестящего приложения RStudion (Old Faithful Geyser Data) в Firefox в консоли отображается несколько ошибок и предупреждений JavaScript, в то время как само приложение работает нормально.Почему они происходят?
Те же ошибки также возникают при доступе к онлайн-приложениям Shiny, например https://shiny.rstudio.com/gallery/lego-set.html
Справочная информация. У меня проблемы с медленным приложением, и я хочу убедиться, что всехорошо с настройкой.Поскольку во всех приложениях, которые я проверял, на консоли отображаются ошибки и предупреждения JavaScript (хотя сами приложения работают нормально), я хочу быть уверен, что они не вызывают проблем с производительностью.
Это выводКонсоль Firefox:
undefined pageModifier.js:585:9
Mutations-Ereignisse sollten nicht mehr verwendet werden. Verwenden Sie MutationObserver stattdessen. pageModifier.js:81:20
[Exception... "Favicon at "http://127.0.0.1:4399/favicon.ico" failed to load: Not Found." nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource:///modules/FaviconLoader.jsm :: onStopRequest :: line 186" data: no]
unreachable code after return statement ExtensionContent.jsm:513:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
unreachable code after return statement ExtensionContent.jsm:517:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
unreachable code after return statement ExtensionContent.jsm:515:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
unreachable code after return statement ExtensionContent.jsm:513:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
unreachable code after return statement ExtensionContent.jsm:517:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
unreachable code after return statement ExtensionContent.jsm:515:8
Unchecked lastError value: Error: Script '<anonymous code>' result is non-structured-clonable data background.js:273
Я использую Firefox 65 на Windows 7, версия R 3.3.3 (2017-03-06), блестящая 1.2.0 и версия RStudio 1.0.136.
Это приложение (без изменений, новое блестящее приложение):
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- fluidPage(
# Application title
titlePanel("Old Faithful Geyser Data"),
# Sidebar with a slider input for number of bins
sidebarLayout(
sidebarPanel(
sliderInput("bins",
"Number of bins:",
min = 1,
max = 50,
value = 30)
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot")
)
)
)
# Define server logic required to draw a histogram
server <- function(input, output) {
output$distPlot <- renderPlot({
# generate bins based on input$bins from ui.R
x <- faithful[, 2]
bins <- seq(min(x), max(x), length.out = input$bins + 1)
# draw the histogram with the specified number of bins
hist(x, breaks = bins, col = 'darkgray', border = 'white')
})
}
# Run the application
shinyApp(ui = ui, server = server)