Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sexpr's argument 'results=hide' ignored when rendering reference pages #651

Closed
GeoBosh opened this issue May 2, 2018 · 1 comment
Closed
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏

Comments

@GeoBosh
Copy link

GeoBosh commented May 2, 2018

I am experimenting with pkgdown and am encountering some problems (in unusual situations) which look like bugs. I don't know enough details to make minimal examples, the notes below are with
https://github.com/GeoBosh/Rdpack

It seems that is Sexpr's argument 'results=hide' is ignored. An example:
https://github.com/GeoBosh/Rdpack/blob/master/man/Rdpack-package.Rd
starts with:

\name{Rdpack-package}
\alias{Rdpack-package}
\alias{Rdpack}
\docType{package}
\title{
  \Sexpr[stage=build,results=hide]{require(Rdpack)}
  \Sexpr[stage=build,results=hide]{pd <- packageDescription("Rdpack")}
  \Sexpr[stage=build,results=hide]{lb <- library(help="Rdpack", character.only=TRUE)}
  \Sexpr[stage=build]{pd$Title}
}

The result from require() (TRUE) and the whole package description end up in the 'Title' field of the rendered page.There are a number of warnings, as well, but all seem to stem from this.

@hadley hadley added bug an unexpected problem or unintended behavior rd-translation 🎏 labels May 22, 2018
@hadley
Copy link
Member

hadley commented May 22, 2018

pkgdown currently only has rudimentary \Sexpr{} support; we're implementing features as people ask for them.

@hadley hadley closed this as completed in f2c2b37 May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior rd-translation 🎏
Projects
None yet
Development

No branches or pull requests

2 participants