wleepang / DesktopDeployR

A framework for deploying self-contained R-based applications to the desktop
Apache License 2.0
406 stars 120 forks source link

App and packages greyed out #24

Closed parachutedream-s closed 4 years ago

parachutedream-s commented 4 years ago

Hi there,

I am having a similar issue to one that has been closed - my app is greyed out and various packages do not seem to be loading (but some are, such as "Bootstrap"). However, there are no errors reported in my error log and the app seems to locate the data:

OGR data source with driver: ESRI Shapefile Source: "C:\Users\jr\Documents\Leaflet_demo_PD2\app\shiny", layer: "All_NP_desc_vid" with 3 features It has 12 fields Integer64 fields read as doubles: Dist_log ID

I edited the config. file to include

"logging": { "filename": "error.log", "use_userprofile": "true" } Which results in the application not starting up at all.

Thanks for developing this! I'm using it for a proof of concept

wleepang commented 4 years ago

Have you split your application code into server.R, ui.R, and optionally global.R? If so, you typically need to library() the salient package dependencies in each file.

parachutedream-s commented 4 years ago

Hi! Thanks for getting back to me,

I tried calling each dependency using library() within the ui, server, and global files but I am having the same problem.

wleepang commented 4 years ago

Can you provide a minimally reproducible example? It would help debugging.

parachutedream-s commented 4 years ago

Hi there,

I have re-installed using R version 3.5.1 (the same install that is on my C drive) to confirm package dependencies and now it is not opening at all.

R version: 3.5.1 System: Windows 10 enterprise

Would it be possible for me to share the code with you over email? While I have wiped the data, it references soon-to-be released information.

parachutedream-s commented 4 years ago

Hi there! I found a fix - I firstly copied all of the packages from my existing desktop library to both library locations on the R portable install, changed the Rprofile.site file, and then manually installed the packages dependencies within R portable (i.e., not call them from the packages.txt file). However I am running into another issue now that I will raise a separate ticket for