holtzy / epuRate

A clean R Markdown template for your reports
https://holtzy.github.io/epuRate/
98 stars 55 forks source link

fetching remote resource failed due to proxy ? #5

Open kgluborg opened 5 years ago

kgluborg commented 5 years ago

Hi Yan,

Thanks for the beautiful work on epuRate !

I have some issues knitting "A clean and uncluttered template" which I guess are due to our corporate proxy refusing to return https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css . As I can access it easily from a web browser, I am wondering if there would be a way to save it locally and indicate to epuRate the local address instead of the remote one.

The error received :

Could not fetch https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
HttpExceptionRequest Request {  
  host                 = "cdnjs.cloudflare.com"  
  port                 = 443  
  secure               = True  
  requestHeaders       = []  
  path                 = "/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"  
  queryString          = ""  
  method               = "GET"  
  proxy                = Nothing  
  rawBody              = False  
  redirectCount        = 10  
  responseTimeout      = ResponseTimeoutDefault  
  requestVersion       = HTTP/1.1  
}  
 (ConnectionFailure user error (Network.Socket.gai_strerror not supported: 11001))  
Error: pandoc document conversion failed with error 61  
In addition: Warning messages:  
1: Removed 10 rows containing missing values (position_stack).   
2: Removed 10 rows containing missing values (geom_text).   
3: Removed 16 rows containing missing values (position_stack).   
4: Removed 16 rows containing missing values (geom_text).   
5: Removed 12 rows containing missing values (position_stack).   
6: Removed 12 rows containing missing values (position_stack).   
7: Removed 12 rows containing missing values (geom_text). 
8: MathJax doesn't work with self_contained when not using the rmarkdown "default" template.
Execution halted  

Session Info if any use :

>sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 16299)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] knitr_1.23

loaded via a namespace (and not attached):
 [1] compiler_3.6.0  htmltools_0.3.6 tools_3.6.0     yaml_2.2.0      Rcpp_1.0.1      rmarkdown_1.13  xfun_0.7       
 [8] digest_0.6.19   epuRate_0.1     evaluate_0.13

Merci if you have some time to look into that !

holtzy commented 5 years ago

Hi @kgluborg, Thanks for your feedback. I genuinely don't have time to handle this issue right now, even if you explained really clearly what needs to be done. Sorry for that, if you feel like making a PR, that would be awesome! Cheers,

kgluborg commented 5 years ago

Thanks Yan, I had to use google to understand the meaning of PR... so I guess this is too complicated for me :( but if I feel like one day I am able one day to understand nuts and bolts of your stuff, I will surely do ! Cheers !