Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi, I am very new to DSS and I am facing multiple difficulties trying to get a shiny webapp running, would be great if someone could answer/elaborate on the following,
Hi @VarunVankineni,
For debugging, you can add print statements in your server code if you want to inspect data, and the print statements will be reflected in the webapp "Log" tab. The full logs are also available on the right-hand sidebar "Logs" selection. Note that you do have to click the "refresh" button to see updated logs if you performed some actions in the UI and then want to see the updated logs as a result of your actions.
That said, it may be easier to debug at least some of your code in a notebook and then port it over to a webapp after you have it working as expected.
For using a code file in a webapp, do you mean something like an R project library? If so, you can call R project library code from within a webapp. For example, if I have the following R library file that contains a function:
โ
In my shiny webapp server tab I can import the library like so:
library(dataiku)
dkuSourceLibR("myLibrary.R")
And then call my function within the webapp. You can read more about this here: Sharing R code within a project
However, if I am misunderstanding what type of code file you are looking to use, please let me know.
Thanks,
Sarina
Hello @VarunVankineni and welcome to both Dataiku and the Dataiku Community. Since you mentioned that you are very new to Dataiku here are a few resources that you may find helpful, if you haven't accessed them already, while you wait for a more complete response:
I hope this helps!
Hi Corey,
I did go through the hands on.
It doesn't showcase how one can use a code file in the library into the shiny webapp. It is also very hard to develop in the webapp without an actual console, which does exist when we are working on code recipes.
Could you help me out with these issues.
Hi @VarunVankineni,
For debugging, you can add print statements in your server code if you want to inspect data, and the print statements will be reflected in the webapp "Log" tab. The full logs are also available on the right-hand sidebar "Logs" selection. Note that you do have to click the "refresh" button to see updated logs if you performed some actions in the UI and then want to see the updated logs as a result of your actions.
That said, it may be easier to debug at least some of your code in a notebook and then port it over to a webapp after you have it working as expected.
For using a code file in a webapp, do you mean something like an R project library? If so, you can call R project library code from within a webapp. For example, if I have the following R library file that contains a function:
โ
In my shiny webapp server tab I can import the library like so:
library(dataiku)
dkuSourceLibR("myLibrary.R")
And then call my function within the webapp. You can read more about this here: Sharing R code within a project
However, if I am misunderstanding what type of code file you are looking to use, please let me know.
Thanks,
Sarina
I think you answered my questions accurately. This is the kind of file I wanted to import into the webapp.
Thanks!