trinker / reports

An R package to assist in the workflow of writing academic articles and other reports
http://cran.us.r-project.org/web/packages/reports/
102 stars 25 forks source link

Have wheresRstudio() look in /Applications/ on OS X #36

Closed kmiddleton closed 11 years ago

kmiddleton commented 11 years ago

Add "/Applications/RStudio.app/Contents/MacOS/RStudio" to the myPaths search for wheresRstudio(). This is the standard location for Rstudio.app to be installed on OS X. I've tested this on my system, and the location of Rstudio is correctly located.

R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin12.4.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] fortunes_1.5-0  devtools_1.3.99

loaded via a namespace (and not attached):
[1] digest_0.6.3   evaluate_0.4.7 httr_0.2      
[4] memoise_0.1    parallel_3.0.1 RCurl_1.95-4.1
[7] stringr_0.6.2  tools_3.0.1    whisker_0.3-2 
trinker commented 11 years ago

Keven Thanks for the pull request.

I merged your pull request but don't have ready access to a mac. Can you do...

library(devtools)
install_github("reports", "trinker")

...and let me know if this problem has been fixed?

Here's the discussion in the NEWS.md

kmiddleton commented 11 years ago

It works. presentation() creates a new presentation and correctly opens Rstudio.

trinker commented 11 years ago

Thanks Kevin