Shiny/R error: Paths should be to files within the project directory

3,238 views
Skip to first unread message

João Pedro Domingues

unread,
Nov 14, 2017, 3:04:30 PM11/14/17
to shinyapps.io Users
Hello everyone, please Help me.
I'm with a great difficult to figure out how to publish that app online. Can find any solution in the older questions.

The app works perfectly locally but its impossible to put it online all together, or even only one file (cluster).

when I run the log, show just this:
"Error in serverInfo(server) : server named 'rpubs.com' does not exist" 

on the part "Markers":
Line 14 - Paths should be to files within the project directory.
Error in sheets_fun(path) : Evaluation error: path[1]="database.xls".

The file *.xlsx is already in the same folder of the *rmd.

Could any one help me I have no idea how to solve this issue. I'm now in tow weeks trying to solve this.
that is to grab a job, and I will appreciate a lot if anyone tell me how to make it works


cluster.Rmd
database.xlsx
_site.yml
1-example.Rmd
index.Rmd
website.Rproj

Joshua Spiewak

unread,
Nov 14, 2017, 3:22:44 PM11/14/17
to shinyapps.io Users
Are you attempting to deploy this to rpubs.com or to shinyapps.io?
If the former, I would suggest heading to the Community site and asking there.
If the latter, your index.Rmd does not specify the shiny runtime and might have issues, and your cluster.Rmd references the home directory and needs to use a relative path instead.

João Pedro Domingues

unread,
Nov 14, 2017, 3:27:08 PM11/14/17
to shinyapps.io Users
I'm trying to publish to shinyapps.io.
even when I try to publish only the file "cluster.rmd" it doesn't work when publish.
how do I use a relative path instead home, to publish only that file?.

Joshua Spiewak

unread,
Nov 14, 2017, 3:35:42 PM11/14/17
to shinyapps.io Users

João Pedro Domingues

unread,
Nov 14, 2017, 3:48:52 PM11/14/17
to shinyapps.io Users
Thank for your help, now it works in parts.
Sorry for the stupid questions but I newbie, I`ve ready this link and I can be able to find a solution.

I put "./database.xlsx" and now it is online, but not as I wanted. the graphics is fine, but not the texts
have a look please

João Pedro Domingues

unread,
Nov 14, 2017, 3:59:39 PM11/14/17
to shinyapps.io Users
please, have a look on this link https://bookdown.org/j__p/previso3/1-example.html

I already put it online on bookdown, but could be able to put all together the file "custer.rmd" is out.
If I just could put it online alone it's fine. but As you can see, the problem now is the texts.
maybe it is a easy issue to you, as specialist, to solve

appreciate a lot

Joshua Spiewak

unread,
Nov 15, 2017, 8:15:12 AM11/15/17
to shinyapps.io Users
You will likely have better luck asking on community.rstudio.com
I can help with issues related to deploying and hosting your application on shinyapps.io, but I am not an expert on RMarkdown.
Message has been deleted
Message has been deleted

João Pedro Domingues

unread,
Nov 15, 2017, 3:54:28 PM11/15/17
to shinyapps.io Users
Dear Joshua,

After your help I could do what I wanted. Thanks a lot. Really appreciate your help.

Joshua Spiewak

unread,
Nov 15, 2017, 3:57:33 PM11/15/17
to shinyapps.io Users
You are very welcome

uc...@truman.edu

unread,
Nov 18, 2017, 6:08:25 PM11/18/17
to shinyapps.io Users
Joshua,

I have a different problem from this gentleman. I have created a shiny app with my ui.R, server.R, and data file in the same directory.  I could get it to run within R-studio, and it does exactly what I want it to do, but when I tried to publish it into the shinapps.io, I get the following error message:

Error in normalizePath(path.expand(path), winslash, mustWork) : 
  path[1]="C:/Users/uchu/My Documents/Coursera/Tempo": Access is denied
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted
And it does not get published.  Would you be able to help please?

Uran
Reply all
Reply to author
Forward
0 new messages