Open sinaneza opened 7 years ago
Provide details or send a personal email regarding your issue to the instructional team. I'm not sure that posting messages like you would on Facebook would give you the constructive response you need.
"DataTables warning: table id=DataTables_Table_1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7" @supersonicole
Well I hate to state the obvious, but if you go to that link there's a shockingly in-depth explanation on debugging your error! That being said, it's not specific to Shiny, so that's far less helpful.
The problem is that it does not create it as a website. it gives an error
Does this occur when you "Run App" and view in browser? Or only when you try to publish the app?
@sinaneza I'm a bit confused, actually, because it works for me. https://samhinshaw.shinyapps.io/hw08_Shiny_App/
Really? Now after 10 times uploading, I was able to see it once entirely; but after that I attempted twice to open it again and I cant see my results completely again @samhinshaw
Are you able to view my published copy properly, or does it give you the same error?
but the link that I have created is this: https://sinanezafatkhah.shinyapps.io/hw08_carbon_emission/ @samhinshaw
I do not get an error message on that website. Can you post a screenshot of the error message?
Alternatively, do nothing, because it seems to be working for me 😅 It could be a browser error (a problem with your computer, not the actual app). But I am curious if your peer reviewers and graders will experience an error--it could be worthwhile to get to the bottom of this.
seems that its problem of Mozilla Firefox. because it works on other browsers.
Just jumping in for a small comment: @sinaneza you may want to look into tabsetPanel
in shiny. It lets you have different tabs so that instead of having one very long page you'll have a navigation at the top of the page that will let you get to different "pages" quickly
After Confirming and continuing, the final error is this:
I think this is an acceptable error for now. It may be occurring because you are loading so many things on one page, causing Firefox to hang. I would recommend you to put a note in your homework submission advising reviewers to not use Firefox.
Alternatively, Dean's fantastic advice may help alleviate this problem as well!
I doubt putting things in tabs will fix this, but it will at least make the app easier to navigate and use :)
Have you tried Googling for this problem? I always google for "r shiny devtools::install_github("rstudio/DT")
instead of install.packages()
, it might work
If you can't figure it out still, I agree with Sam that you can just make a note on your submission to not use firefox
@daattali Thanks alot Dean for your precious comments
@samhinshaw Thanks a lot Sam. Your comments were so helpful either
Code from office hours:
ui <- fluidPage(
titlePanel("Carbon Emission"),
fluidRow(
column(2),
column(10, img(src = "Emission2.png",
width = "600", heght = "600"))
),
br(),br(), br(), br(), br(), br(), br(),
tabsetPanel(id = "MainPageTabs",
tabPanel(
title = "Sectors Trend for the whole world",
fluidRow(
column(2),
column(10,
plotOutput("TotalSecTrPlot"),
br(),br(),
DT::dataTableOutput("TotalSecTrTable")
)
),
br(), br()
),
tabPanel(
title = "Participation of Each Sector",
sliderInput("ContinPoryearInput", "Year", 1950, 2013, 1982),
plotOutput("ContinPorPlot"),
br(), br(),
DT::dataTableOutput("ContinPorTable"),
br(),br()
)
),
h2("Trend of Sectors in Each Continent"),
Thanks alot Sam.
You are so helpful
For issue with no default selected:
Option 1: Use levels(Continent_Emission$continent)
rather than Continent_Emission$continent
selectInput("ContinentSecTrInput", "Continent (Select Continent First)",
levels(Continent_Emission$continent),
selected = "Asia")
Option 2: Don't use selectize.js
selectInput("ContinentSecTrInput", "Continent (Select Continent First)",
Continent_Emission$continent,
selected = "Asia",
selectize = FALSE)
Dear Professor and Peers I have entirely finished my shiny app. The problem is that it does not create it as a website. it gives an error that I cant understand It says: "DataTables warning: table id=DataTables_Table_1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7" PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@jennybc @daattali