Unable to deploy app to the web

Hi, wrote my first app today and would like to deploy it, but when I run the deployApp() command or use the GUI to publish when the app runs in R, it failed to deploy and I get the following error:

Error in inferAppPrimaryDoc():
! Failed to determine appPrimaryDoc.
:heavy_multiplication_x: No files matching "\.html?$".

Any help appreciated.

Thank you

1 Like

I was having the same issue and solved it by explicitly specifying the appPrimaryDoc arg to the deploy function. eg,

rsconnect::deployApp(appFiles='my_app.r', appPrimaryDoc='my_app.r')

Hope that helps.

Thanks for this. Much appreciated