ESS -7.IR Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Téléviseurs et moniteurs ESS -7.IR. ESS -7.IR User manual [en] Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 91
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
ESS Emacs Speaks Statistics
ESS version 15.09-devel
The ESS Developers (A.J. Rossini, R.M. Heiberger, K. Hornik,
M. Maechler, R.A. Sparapani, S.J. Eglen,
S.P. Luque, H. Redestig and V. Spinu)
Current Documentation by The ESS Developers
Copyright
c
2002–2014 The ESS Developers
Copyright
c
1996–2001 A.J. Rossini
Original Documentation by David M. Smith
Copyright
c
1992–1995 David M. Smith
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
Vue de la page 0
1 2 3 4 5 6 ... 90 91

Résumé du contenu

Page 1 - ESS – Emacs Speaks Statistics

ESS – Emacs Speaks StatisticsESS version 15.09-develThe ESS Developers (A.J. Rossini, R.M. Heiberger, K. Hornik,M. Maechler, R.A. Sparapani, S.J. Egle

Page 2 - Table of Contents

Chapter 1: Introduction to ESS 6• font-lock in process buffers doesn’t "spill" over prompts. Missing closing string delim-iters should not ca

Page 3

Chapter 1: Introduction to ESS 7• ESS: process output display is 4-10 times faster due to new caching and only occa-sional emacs re-display (for the m

Page 4

Chapter 1: Introduction to ESS 8• ESS[tracebug]: A better handling of “Selection” prompts and debug related singlekeycommands.• ESS: fix a bug in ess-s

Page 5 - 1 Introduction to ESS

Chapter 1: Introduction to ESS 9• ESS: New “Process” menu entry with process related commands and configuration• iESS: Process buffer is now automatical

Page 6

Chapter 1: Introduction to ESS 10• ESS[Julia]: Help system works again.Changes/New Features in 12.09:• Due to XEmacs lacking some features that ESS re

Page 7 - 1.2 New features in ESS

Chapter 1: Introduction to ESS 11• ESS[R]: R AC sources are no longer auto-starting at 0 characters but at the defaultac-auto-start characters.• ESS n

Page 8

Chapter 1: Introduction to ESS 12• New make target lisp, to build the lisp-only part, i.e., not building the docs.Changes/New Features in 12.04-1:• iE

Page 9

Chapter 1: Introduction to ESS 13a <- some.function(arg1,arg2)This variable should be set as part of indentation style lists, or in ess-mode hook.•

Page 10

Chapter 1: Introduction to ESS 14normal fashion. Variable ess-tracebug-inject-source-p controls this behavior- if t, always inject source reference, i

Page 11

Chapter 1: Introduction to ESS 15• ESS[S]: “,“ is bound to ess-smart-comma: If comma is invoked at the process marker ofan ESS inferior buffer, request

Page 12

iTable of Contents1 Introduction to ESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1 Why should I use ESS?. . . . . . . . . . . . . .

Page 13

Chapter 1: Introduction to ESS 16• ESS: new functions to manipulate process plists: ess-process-get and ess-process-set.• ESS: Internal process waitin

Page 14

Chapter 1: Introduction to ESS 17• Thanks to Martin Maechler for reporting and fixing bugs, providing many useful com-ments and suggestions, and for ma

Page 15

Chapter 1: Introduction to ESS 18a consistent user interface within emacs, regardless of the details of which programminglanguage is being edited, or

Page 16

Chapter 2: Installing ESS on your system 192 Installing ESS on your systemThe following section details those steps necessary to get ESS running on yo

Page 17

Chapter 2: Installing ESS on your system 20ESS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;without even the implied wa

Page 18 - ESS help buffers are

Chapter 3: Interacting with statistical programs 213 Interacting with statistical programsAs well as using ESS to edit your source files for statistica

Page 19

Chapter 3: Interacting with statistical programs 22Alternatively you can start your process normally (M-x R). After you are asked forstarting director

Page 20

Chapter 3: Interacting with statistical programs 23We have two older commands, now deprecated, for accessing ESS processes on remotecomputers. See Sec

Page 21 - 1.5 How to read this manual

Chapter 3: Interacting with statistical programs 242. Otherwise, if the variable ess-directory stores the name of a directory (ending in aslash), this

Page 22

Chapter 4: Interacting with the ESS process 254 Interacting with the ESS processThe primary function of the ESS package is to provide an easy-to-use f

Page 23 - 2.2 License

ii7 Editing objects and functions . . . . . . . . . . . . . . . . 377.1 Creating or modifying S objects . . . . . . . . . . . . . . . . . . . . . . .

Page 24 - 2.4 Requirements

Chapter 4: Interacting with the ESS process 26Thus, for example, you may use C-x [ and C-x ] to move backward and forwards throughESS sessions in a si

Page 25 - 3.1 Starting an ESS process

Chapter 4: Interacting with the ESS process 27whenever the cursor is within a command line in the transcript (if the cursor is within somecommand outp

Page 26

Chapter 4: Interacting with the ESS process 284.3 Command HistoryESS provides easy-to-use facilities for re-executing or editing previous commands. An

Page 27

Chapter 4: Interacting with the ESS process 29(setq comint-scroll-to-bottom-on-output ’others)(setq comint-scroll-show-maximum-output t);; somewhat ex

Page 28

Chapter 4: Interacting with the ESS process 30‘n ’ The nth word, where n is a number‘^’ The first word (i.e. the second one on the command line)‘$’ The

Page 29

Chapter 4: Interacting with the ESS process 31working directory. A prefix argument of 2 or more means get objects for that position.A negative prefix ar

Page 30 - 4.2.2 Viewing older commands

Chapter 4: Interacting with the ESS process 324.6 Is the Statistical Process running under ESS?For the S languages (S, S-Plus, R) ESS sets an option i

Page 31

Chapter 4: Interacting with the ESS process 33Other commands available in Inferior S mode are discussed in Section “Shell Mode” inThe Gnu Emacs Refere

Page 32 - 4.3 Command History

Chapter 5: Sending code to the ESS process 345 Sending code to the ESS processOther commands are also available for evaluating portions of code in the

Page 33 - (setq ess-history-file nil)

Chapter 5: Sending code to the ESS process 35[Command]ess-eval-buffer visC-c C-b Sends the current buffer to the ESS process.[Command]ess-eval-buffer-a

Page 34

iii12 Overview of ESS features for the S family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6212.1

Page 35

Chapter 6: Manipulating saved transcript files 366 Manipulating saved transcript filesInferior S mode records the transcript (the list of all commands e

Page 36 - 4.7 Using emacsclient

Chapter 7: Editing objects and functions 377 Editing objects and functionsESS provides facilities for editing S objects within your Emacs session. Mos

Page 37

Chapter 7: Editing objects and functions 38automatically if the buffer was generated with C-c C-e C-d). The file will then be loaded,and if it loads suc

Page 38

Chapter 7: Editing objects and functions 39[User Option]ess-first-tab-never-completeIf non-nil, TAB never tries to complete in ess-mode. The default ’

Page 39

Chapter 7: Editing objects and functions 40(defun myindent-ess-hook ()(setq ess-indent-level 4))(add-hook ’ess-mode-hook ’myindent-ess-hook)In the rar

Page 40 - 6.2 Cleaning transcript files

Chapter 7: Editing objects and functions 41wanted to look at the definition of one of the standard S functions) the source dump filewon’t be left around

Page 41

Chapter 7: Editing objects and functions 427.7 Names and locations of dump filesEvery dump file should be given a unique file name, usually the dumped ob

Page 42

Chapter 7: Editing objects and functions 43If the directory generated by the lambda function does not exist but can be created,you will be asked wheth

Page 43

Chapter 8: Reading help files 448 Reading help filesESS provides an easy-to-use facility for reading S help files from within Emacs. From withinthe ESS p

Page 44 - 7.6 Maintaining S source files

Chapter 8: Reading help files 45‘R’ REQUIRED ARGUMENTS:‘r’ REFERENCES:‘s’ SEE ALSO:‘S’ SIDE EFFECTS:‘u’ USAGE:‘v’ VALUE:‘<’ Jumps to beginning of fil

Page 45

Chapter 1: Introduction to ESS 11 Introduction to ESSThe S family (S, Splus and R) and SAS statistical analysis packages provide sophisticatedstatisti

Page 46

Chapter 9: Completion 469 Completion9.1 Completion of object namesThe TAB key is for completion. The value of the variable ess-first-tab-never-complet

Page 47

Chapter 9: Completion 479.2 Completion of function argumentsWhen inside a function call (i.e. following ‘(’), TAB completion also provides functionarg

Page 48 - 8 Reading help files

Chapter 9: Completion 48Once installed, Icicles can be activated by evaluating (maybe place in ‘~/.emacs’):(require ’icicles)(icy-mode 1)Icicles can b

Page 49

Chapter 10: Developing with ESS 4910 Developing with ESSESS provides several tools to help you with the development of your R packages:10.1 ESS traceb

Page 50 - 9 Completion

Chapter 10: Developing with ESS 50w . Watch window . ‘ess-watch’(C- prefixed equivalents are also defined)* Navigation to errors (general emacs functi

Page 51 - 9.5 Icicles

Chapter 10: Developing with ESS 51C-h m Describe the features of Rd mode.LFDRET Reindent the current line, insert a newline and indent the new line (r

Page 52

Chapter 10: Developing with ESS 5210.2.2 Editing Roxygen documentationThe Roxygen R package makes it possible to keep the intended contents for Rd file

Page 53 - 10 Developing with ESS

Chapter 10: Developing with ESS 53of-open, i.e. C-u C-c C-e C-t, visit the generated HTML file instead. Requires theRoxygen and tools packages to be in

Page 54 - 10.2 Editing documentation

Chapter 10: Developing with ESS 54In order to use ess-developer you must add names of the packages that you are developingto ess-developer-packages. Y

Page 55 - Rd-to-help-command

Chapter 10: Developing with ESS 55Class "boo" is defined (with package slot foo) but no metadata objectfound to revise subclass information-

Page 56

Chapter 1: Introduction to ESS 2• SAS• OpenBUGS/JAGS• Stata• Julia• Editing source code (S family, SAS, OpenBUGS/JAGS, Stata, Julia)• Syntactic indent

Page 57 - 10.3 ESS developer

Chapter 11: Other ESS features and tools 5611 Other ESS features and toolsESS has a few extra features, which didn’t fit anywhere else.11.1 ElDocIn ElD

Page 58

Chapter 11: Other ESS features and tools 57search ess-execute-searchset-width ess-execute-screen-optionsinstall.packagesess-install.packageslibrary es

Page 59

Chapter 11: Other ESS features and tools 5811.5 Using graphics with ESSOne of the main features of the S package is its ability to generate high-resol

Page 60 - 11.2 Handy commands

Chapter 11: Other ESS features and tools 5911.8 TAGSThe Emacs tags facility can be used to navigate around your files containing definitions ofS functio

Page 61 - 11.4 Parenthesis matching

Chapter 11: Other ESS features and tools 6011.10 RutilsEss-rutils builds up on ess-rdired, providing key bindings for performing basic R functions int

Page 62 - 11.7 Toolbar

Chapter 11: Other ESS features and tools 6111.11 Interaction with Org modeOrg-mode (http://orgmode.org) now supports reproducible research and literat

Page 63 - 11.9 Rdired

Chapter 12: Overview of ESS features for the S family 6212 Overview of ESS features for the S family12.1 ESS[S]–Editing filesESS[S] is the mode for edi

Page 64 - 11.10 Rutils

Chapter 12: Overview of ESS features for the S family 63In the (rare) case that you wish to pass command line arguments to the starting S+6process, se

Page 65

Chapter 12: Overview of ESS features for the S family 64’( ("Splus64" "/usr/local/bin/Splus64")("Splus64-j" "/usr/l

Page 66 - 12.1 ESS[S]–Editing files

Chapter 12: Overview of ESS features for the S family 65## Edit as appropriate, and then start up S-PLUS 3.xM-x S+3## A new buffer *S+3:1* will appear.

Page 67

Chapter 1: Introduction to ESS 3• Command-line completion of both object and file names for quick entry. This is similarto tcsh’s facility for filenames

Page 68

Chapter 12: Overview of ESS features for the S family 663: ## Program revision example (S object is real)## Start up S-PLUS 3.x in a process buffer (th

Page 69

Chapter 12: Overview of ESS features for the S family 67C-c C-d my.cool.function## Edit the function as appropriate, and dump back in to the## process

Page 70

Chapter 13: ESS for SAS 6813 ESS for SASESS[SAS] was designed for use with SAS. It is descended from emacs macros developed byJohn Sall for editing SA

Page 71

Chapter 13: ESS for SAS 6913.3 ESS[SAS]–TAB keyTwo options. The TAB key is bound by default to sas-indent-line. This function is usedto syntactically

Page 72 - 13 ESS for SAS

Chapter 13: ESS for SAS 70ess-sas-submit-command: "sas8"End:The command line is also made of ess-sas-submit-pre-command, ess-sas-submit-post

Page 73 - 13.3 ESS[SAS]–TAB key

Chapter 13: ESS for SAS 71F5 (F6)Now, ‘refresh’ the ‘.lst’ and go to it’s buffer.F6 (F7)If you wish to make changes, go to the ‘.sas’ file with.F4 (F5)M

Page 74 - SAS batch job before it

Chapter 13: ESS for SAS 72Finally, we get to what the function keys actually do. You may recognize some of thenicknames as SAS Display Manager command

Page 75

Chapter 13: ESS for SAS 73open an interactive PROC INSIGHT session on the SAS dataset nearpointC-F10 C-F10 toggle-listingtoggle ESS[SAS] for ‘.lst’ fil

Page 76 - SAS dataset near

Chapter 13: ESS for SAS 74(setq ess-sas-graph-view-suffix-regexp (concat "[.]\\([eE]?[pP][sS]\\|""[pP][dD][fF]\\|[gG][iI][fF]\\|[jJ][pP

Page 77

Chapter 13: ESS for SAS 75M-x SASFour buffers will appear on screen:Buffer Mode Description‘foo.sas’ ESS[SAS] your source file‘*SAS:1*’ iESS[SAS:1] iESS

Page 78

Chapter 1: Introduction to ESS 4• ESS[R]: Detect library and require calls for better completion caching.• Buffer display is now customizable (ess-show

Page 79

Chapter 13: ESS for SAS 76find / -name sas -printNow place a soft link to the real sas executable in your ~/bin directory, with forexamplecd ~/binln -

Page 80 - 13.9 ESS[SAS]–Windows

Chapter 14: ESS for BUGS 7714 ESS for BUGSESS[BUGS] was originally designed for use with BUGS software. Later, it evolved to supportJAGS as a dialect

Page 81 - 14 ESS for BUGS

Chapter 15: ESS for JAGS 7815 ESS for JAGSESS[BUGS] was originally designed for use with BUGS software. Later, it evolved to supportJAGS as a dialect

Page 82 - 15 ESS for JAGS

Chapter 15: ESS for JAGS 79C-c C-c, a command file is created if one does not already exist. When you are finishedediting your command file, pressing C-c

Page 83 - 15.3 ESS[JAGS]–Log files

Chapter 16: Bugs and Bug Reporting, Mailing Lists 8016 Bugs and Bug Reporting, Mailing Lists16.1 Bugs• Commands like ess-display-help-on-object and li

Page 84 - 16.3 Mailing Lists

Chapter 16: Bugs and Bug Reporting, Mailing Lists 81• helping users of ESS to get along with it.• discussing aspects of using ESS on Emacs and XEmacs.

Page 85 - 16.4 Help with emacs

Appendix A: Customizing ESS 82Appendix A Customizing ESSESS can be easily customized to your taste simply by including the appropriate lines inyour ‘.

Page 86 - Appendix A Customizing ESS

Indices 83IndicesKey index,, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56{{ . . . . . . . . . . . .

Page 87 - Indices 83

Indices 84comint-bol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25comint-copy-old-input . . . . . . . . . . . . . . . . .

Page 88 - Indices 84

Indices 85Oobjects() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Pprinter(). . . . . . . . . . . . . . . . . . . . .

Page 89 - Indices 85

Chapter 1: Introduction to ESS 5• ESS[R]: fixed "empty watch window bug"• ESS[R]: don’t ask for help location on ac-quick-help (request of gi

Page 90 - Indices 86

Indices 86completion on file names . . . . . . . . . . . . . . . . . . . . . . . 46completion on lists. . . . . . . . . . . . . . . . . . . . . . . . .

Page 91 - Indices 87

Indices 87SS+elsewhere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21search list. . . . . . . . . . . . . . . . . . . . . .

Commentaires sur ces manuels

Pas de commentaire