Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

126
Vistas
R Markdown: modify document title with javascript

With R Markdown, I would like to set the title of the document and it depends on R code that will be run inside this Rmd file.

So I try to use javascript to set the title.

I tried this following code, but it doesn't work:

document.title = "`r title_value`";

I think that I should to find the correct way to set the title. For example, to change the text in the navbar, I succeded with the following code:

document.querySelector(".navbar-header > span.navbar-brand").innerHTML = "`r title_value`";
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda