InseadDataAnalytics / INSEADAnalytics

Other
122 stars 1.31k forks source link

Error in generating .html #134

Open Salman584 opened 6 years ago

Salman584 commented 6 years ago

When generating .html file from knit, getting the following error:

error
egustafson86 commented 6 years ago

I wasn't able to generate the .html output from Knit; however, I was able to get the same output via

rmarkdown::render("file location on your local drive/CourseSessions/InClassProcess/MarketSegmentationProcessInClassParts1and2.Rmd","html_document")

Note, need to specify the whole file name from your computer, not just the portion contained in line 18 from the code in class, i.e. the full file name to the left of "/CourseSessions"

STEPS REQUIRED BEFORE ABOVE RENDER FUNCTION

  1. as Sara mentioned in class -> install.packages("shiny") #Ensure box is checked in PACKAGES tab, shiny
  2. setwd(location file location for your computer) #for me this was, stewed("/Users/erikgustafson/Downloads/INSEADAnalytics-master/CourseSessions/InClassProcess")
andrewtlocke commented 6 years ago

After class I worked with Theos and we got the html to run via the web browser.

here's what worked: (1) Completely restart R (2) setwd to the location of the folder (3) load shiny via library(shiny) (4) Run rmarkdown::render("CourseSessions/InClassProcess/MarketSegmentationProcessInClassParts1and2.Rmd") (5) Open the html file that was created within the wd, opening in web browser

With this you can edit the code to run boats (or any other dataset) and see the output notebook in the browser.

Note -- it does not fix the problem of viewing the html within the RStudio window itself.

VarunKShetty commented 6 years ago

@Salman584 Is your issue resolved?

Salman584 commented 6 years ago

@VarunKShetty Yes the html is generated now. Thank you.