- उदाहरण
- समस्या बयान
- समाधान खोज और
- प्रश्न
... rmarkdown उदाहरण कोड देखें।एम्बेड सीएसवी
rmarkdown स्निपेट को संशोधित करके समाधान का प्रदर्शन करने वाले उत्तरों की सराहना करते हैं।
---
title: "Reproducable Example"
author: "user2030503"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Example: mtcars
```{r}
write.csv2(mtcars, "./file.csv")
# Code to embed mtcars as csv
# Code to provide mechanism for button or link for later user interaction to open/save the csv.
```
## Problem
* I want to embed the csv file into the html generated by this rmarkdown script.
* Embedding here means, that the csv data are integral part of the hmtl (i.e. for offline use).
* I want a mechanism (button or link) in the html, which allows the user to open/save the data the csv.
## Search for a solution
There are techniques for embedding rdata files.
* http://rmarkdown.rstudio.com/articles_rdata.html
* https://github.com/richarddmorey/BayesFactorExtras/blob/master/BayesFactorExtras/R/downloadURI.R
## Question
* Dispite of above approaches, I did not find a solution yet how to solve the problem.
* How can it be achieved demonstrating it via this reproducable example ?
दुर्भाग्यवश यह समाधान आईई 11 (विंडोज 8) में काम नहीं करता है। समाधान द्वारा उत्पन्न लिंक कुछ भी ट्रिगर नहीं करता है। इसका समाधान कैसे किया जा सकता है ? – user2030503
ऐ, एक असली ब्राउज़र का उपयोग करें ;-) ऐसा लगता है कि यह आईई 11 के साथ एक ज्ञात समस्या है मस्तिष्क मृत: http://caniuse.com/#feat=datauri; इसका मतलब है कि आप आईईआई 11 के लिए इस प्रकार के डेटा यूआरआई को एम्बेड नहीं कर सकते हैं। ऐसा लगता है कि एज भी मस्तिष्क मृत है। – hrbrmstr
यह समाधान क्रोम के लिए अच्छा है लेकिन सफारी में, एक डाउनलोड शुरू नहीं किया गया है और हम ब्राउज़र पर प्रदर्शित सीएसवी देखते हैं। क्या आसपास कोई काम है? –