Skip to content

Conversation

jjallaire
Copy link
Member

A few changes to make the 'Compile PDF' button work for Rcpp vignettes in RStudio:

  • Set Sweave as the default Rnw processor in RStudio project file
  • Magic comment to specify highlight package as the Sweave driver (note this is only recognized by development versions of RStudio >= v0.99.259)
  • Turn off Sweave concordance (enabling it produced errors, not sure why)
  • Add artifacts of PDF preview to .gitignore for vignettes directory

Make a few changes to make the 'Compile PDF' button work for Rcpp vignettes in RStudio:

- Set Sweave as the default Rnw processor in RStudio project file
- Magic comment to specify highlight package as the Sweave driver (note this is only recognized by development versions of RStudio >= v0.99.258)
- Turn off Sweave concordance (enabling it produced errors, not sure why)
- Add artifacts of PDF preview to .gitignore for vignettes directory
@eddelbuettel
Copy link
Member

Very nice! That was a minor wart, and I have contemplated no longer using highlight---but as it is so entrenched in our vignettes...

Cheers from Vegas and 70+ degrees. A nice break from the Chicago weather, and I guess I should not mention weather to you anyway ... ;-)

@jjallaire
Copy link
Member Author

I believe I can get rid of the need to include concordance = FALSE with one
more tweak to RStudio. Let me see if I can sort that out before we merge
the PR.

Don't get me started on the weather, we are in the midst of yet another
blizzard right now :-\

On Feb 14, 2015, at 8:16 PM, Dirk Eddelbuettel notifications@github.com
wrote:

Very nice! That was a minor wart, and I have contemplated no longer using
highlight---but as it is so entrenched in our vignettes...

Cheers from Vegas and 70+ degrees. A nice break from the Chicago weather,
and I guess I should not mention weather to you anyway ... ;-)


Reply to this email directly or view it on GitHub
#256 (comment).

@jjallaire
Copy link
Member Author

Sure enough I was able to eliminate the need for the concordance directive. Updated the PR to reflect this. Note that this will all work correctly as of the next daily build of RStudio (v0.99.259).

jjallaire added a commit that referenced this pull request Feb 15, 2015
@jjallaire jjallaire merged commit 02a6aa1 into master Feb 15, 2015
@jjallaire jjallaire deleted the feature/vignettes-highlight-driver branch February 15, 2015 12:50
jmp75 pushed a commit to jmp75/Rcpp that referenced this pull request Mar 16, 2015
…ight-driver

Enable preview of vignettes in RStudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants