Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
157 views
in Technique[技术] by (71.8m points)

r - Why isn't my RMD deploying to shinappsio?

I used RMD to write a report, and it runs fine locally. When I try to deploy using the following code:

```

---
output: bookdown::html_document2
runtime: shiny
resource_files:
- Data/Raw data/allorders.csv
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)

library(tidyverse)
library(dplyr)
library(here)
library(readr)
library(ggplot2)
library(plotly)
library(GGally)
library(ggthemes)
library(janitor)
library(reshape2)
library(broom)
library(mapproj)
library(geojsonio)
library(scales) 
library(bdscale)

# Load data

df_raw =
  file.path("Data/Raw data/allorders.csv") %>%
  readr::read_csv(na = c("NA", "")) %>% 
  rename_all(tolower) %>% 
  rename("customer_type" = "customer type")
```

The log returns the following error:

Warning: Error in eval: object 'df_raw' not found

I've tried a couple of different configurations and I can figure out that it's definitely some problem with the file path, but I can't figure out what??

question from:https://stackoverflow.com/questions/65944243/why-isnt-my-rmd-deploying-to-shinappsio

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...