Up your Mac data Mac OS. Machine' icon. Mac's System Preferences. Discs from a Mac without a built. Work with Mac computers. Is a Mac Sharing Icon. Next:, Previous:, Up: R for Mac OS X FAQ Frequently Asked Questions on R for Mac OS X Version 3.5.0 2018-04-23, R.app 1.71 Stefano M. Iacus Simon Urbanek Rob J. Goedman Brian Ripley •: •: •: •: •: •: •: •: •: •: — The Detailed Node Listing — Introduction •: •: •: R.app •: •: •: •: •: •: •: The R Console •: •: •: •: •: General Features •: •: •: •: •: •: •: •: •: •: •: The Menus •: •: •: •: •: •: •: Preferences •: Startup •: •: •: •: How to install packages •: •: •: •: R and external applications •: •: •: Quartz device •: •: •: Additional resources •: •: Miscellaneous questions •: •: •: •: •: •: •: •: •: •: •: •: •: •: •. Next:, Previous:, Up: 1 Introduction This document contains a user guide to the R.APP version of R, and information on using R on OS X which supplements the main R manuals. As from R 3.0.0 most of the information has been moved to those manuals, the latest versions of which can be found at. In this document R refers to the core, command-line-based R system while R.APP refers to the GUI-based Mac OS application that controls the underlying R. This ‘R for Mac OS X FAQ’ is rather incomplete at the moment and requires contributions from users. Anything specific to the R language can be found in the main R-FAQ (see ). Please send any requests/questions you would like answers to the mailing list (after subscribing) as well as comments on this FAQ. The last section of this document contains the most frequently asked questions that don’t fit strictly into any of the categories above – it is usually a good idea to always look into that section if your issue doesn’t fit any of the above or was not answered in one of the specific sections. Always read this FAQ before asking for help on R-SIG-Mac! Previous:, Up: 1.3 How can R for Mac OS X be obtained and installed? R is available on CRAN in the form of an Installer package containing the R framework and the R.APP GUI. The package is usually named R.pkg with an optional version number. The installation is done by double-clicking on the Installer package. The Installer will guide you through the necessary steps. Note that it will require password or login of an account with administrator privileges. The installation can be customized, but the default is suitable for most users. Snapshots of the R-patched and R-devel flavours are available at, packaged in the same way. Further details, including uninstallation and building R from the sources, are in the ‘R Installation and Administration Manual’. Next:, Previous:, Up: 2.3.3 The current and startup working directories If not otherwise specified in the Preferences (see ), or if the specified path is no longer available, then the default working directory at startup is the user home. The working directory can be changed using the setwd R command or using the Misc menu item Change working directory. Finally it is possible to use a specific directory for a single R session by dragging a folder onto the R.APP icon. If R.APP is not running, this will cause R.APP to be started in the directory corresponding to the folder dragged. The same can be achieved on the command line – for example open -a R. Causes R.APP to be started using the current directory as the startup working directory. This feature is useful if you want different startup procedures defined by the.Rprofile; you can edit a.Rprofile (containing you personal initialization R commands) in a particular directory and use the Preferences (or any other method mentioned above) to change the startup directory. Next time you launch R.app the.Rprofile is read and executed by R at startup. This is the equivalent on Unix (or the command line) to launch R from different directories. Next:, Previous:, Up: 2.4.2 Editor undo and line numbers The editor supports undo/redo operations on an appropriate level of granularity (used to be all or nothing). The editor has an optional facility to show line numbers. These help with locating error messages. The editor also responds to the ’Go to Line’ Edit menu function. The associated Preference Pane allows enabling/disabling of the line numbers, as well as setting line number gutter width (to fit larger line numbers) and text margin width. Next:, Previous:, Up: 2.4.5 Editor syntax coloring The editor supports syntax-highlighting for R code. It is possible to change the syntax highlighting colors using the Syntax Color Preference Pane (see below).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |