I am using RStudio on a windows machine. recently, I wanted to deploy an shiny-markdown document using the HH
library - wihout sucess. I broke down the error to the following test program
---
title: "Untitled"
runtime: shiny
output: html_document
---
```{r}
require( Rmpfr )
```
This program works well if I run it locally. However, if I try to deploy it to shinyapps.io using shinyapps::deployApp()
, RStudio tries to build the package Rmpfr
from source even tough the package is already installed. This building from source fails with the following error (full error log: http://pastebin.com/D5KVc44n)
configure: error: Header file mpfr.h not found; maybe use --with-mpfr-include=INCLUDE_PATH
ERROR: configuration failed for package ‘Rmpfr’
* removing ‘/usr/local/lib/R/site-library/Rmpfr’
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 61322212 failed: Error building image: Error building Rmpfr (0.5-7). Build exited with non-zero status: 1
I think this question is related to this one about the rmpfr package, but the solution does not work on windows since it uses the apt-get
command.
Any suggestions are welcome.
EDIT: I already tried to make mpfr.h
available. I downloaded the mpfr
package from http://www.mpfr.org/mpfr-current/, unpacked it and added it to the windows PATH variable. I also copied the entries of the mpfr-3.0.0 folder to the R working directory. Both methods showed no success.