[R] [shiny] How to read current URL address

Raphael Prates raphaelprates at outlook.com
Wed Jan 10 19:09:25 CET 2018


Dears,

I am trying to read the URL name  (i.e "www.google.com") that I was redirected by my own code.

What I already found that could help:


session$clientData$url_protocol
session$clientData$url_hostname
session$clientData$url_pathname
session$clientData$url_port
session$clientData$url_search

But then when I try to use this code in my server function the bellow Error appears:

> urlSearch <- session$clientData$url_search
Error in .getReactiveEnvironment()$currentContext() :
  Operation not allowed without an active reactive context. (You tried to do something that can only be done from inside a reactive expression or observer.)

Could anyone help with this? Considering that the reactive I will not use this value to renderText or to put this values on my shiny website?


Thnx

	[[alternative HTML version deleted]]



More information about the R-help mailing list