trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
213 stars 74 forks source link

Linux builds dont contain searchOSMOptions #137

Closed ciaransweet closed 6 years ago

ciaransweet commented 6 years ago

Hi there,

If I run my Shiny app on R Studio on my Mac, I get searchOSMOptions available to me. However when I build my Shiny app in a Linux environment (Debian in my case), it would appear searchOSMOptions is no longer available.

Warning: Error in searchOSMOptions: could not find function "searchOSMOptions"                                                        
Stack trace (innermost first):                                                                                                         
    89: evalAll                                                                                                                        
    88: evalFormula                                                                                                               
    87: invokeMethod                                                                                                            
    86: addSearchOSM                                                                                                         
    85: function_list[[i]]                                                                                                         
    84: freduce                                                                                                                       
    83: _fseq                                                                                                                           
    82: eval                                                                                                                            
    81: eval                                                                                                                            
    80: withVisible                                                                                                                
    79: %>%                                                                                                                          
    78: func [/srv/shiny-server/testFrontend/server.R#15]                                                
    77: origRenderFunc                                                                                                        
    76: output$map                                                                                                              
     1: runApp

On Shiny I get: An error has occurred. Check your logs or contact the app author for clarification.

Any suggestions?

ciaransweet commented 6 years ago

This was on a fresh R session in Debian https://pastebin.com/jrtYnCYU

ciaransweet commented 6 years ago

Can someone link me to the commit this was taken out? I've been trawling the repo for an hour now and can't find the commit it's removed in. Nor is there any documentation to say it's no longer available or how to replace it...

bhaskarvk commented 6 years ago

What was the root cause?

PauloJhonny commented 4 years ago

any news about this? thanks

ciaransweet commented 4 years ago

@PauloJhonny Sorry, this was way back when I was at Uni, I wasn't smart enough to note down on issues when something was fixed. I'm not entirely sure I ever got it working.

The repo has a Dockerfile for deploying the app and that was using:

FROM rocker/shiny:latest as the base.

Sorry that Uni me was bad!

PauloJhonny commented 4 years ago

@ciaranevans thank you.