The R Project SVN R

Rev

Rev 69345 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69345 Rev 75092
Line 1... Line 1...
1
% File src/library/utils/man/windows/Rconsole.Rd
1
% File src/library/utils/man/Rconsole.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2011 R Core Team
3
% Copyright 1995-2018 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Rwin configuration}
6
\name{Rwin configuration}
-
 
7
\title{R for Windows Configuration}
7
\Rdversion{1.1}
8
\Rdversion{1.1}
8
\alias{Rconsole}
9
\alias{Rconsole}
9
\alias{Rdevga}
10
\alias{Rdevga}
10
\alias{loadRconsole}
11
\alias{loadRconsole}
11
\concept{console}
12
\concept{console}
12
\concept{fonts}
13
\concept{fonts}
13
\concept{preferences}
14
\concept{preferences}
14
\title{R for Windows Configuration}
-
 
15
\description{
15
\description{
16
  The file \file{Rconsole} configures the R GUI console in this
16
  The file \file{Rconsole} configures the R GUI (\command{Rgui}) console
17
  Windows port. The \code{loadRconsole} function loads a new
17
  under MS Windows and \code{loadRconsole(*)} loads a new configuration.
18
  configuration.
-
 
19
 
18
 
20
  The file \file{Rdevga} configures the graphics devices
19
  The file \file{Rdevga} configures the graphics devices
21
  \code{\link{windows}}, \code{win.graph}, \code{win.metafile} and
20
  \code{\link{windows}}, \code{win.graph}, \code{win.metafile} and
22
  \code{win.print}, as well as the bitmap devices \code{\link{bmp}},
21
  \code{win.print}, as well as the bitmap devices \code{\link{bmp}},
23
  \code{jpeg}, \code{png} and \code{tiff} (which use for \code{type =
22
  \code{jpeg}, \code{png} and \code{tiff} (which use for \code{type =
Line 84... Line 83...
84
\author{
83
\author{
85
  Guido Masarotto and R-core members
84
  Guido Masarotto and R-core members
86
}
85
}
87
\seealso{\code{\link{windows}}}
86
\seealso{\code{\link{windows}}}
88
\examples{
87
\examples{
-
 
88
if(.Platform$OS.type == "windows") withAutoprint({
89
ruser <- Sys.getenv("R_USER")
89
  ruser <- Sys.getenv("R_USER")
90
cat("\n\nLocation for personal configuration files is\n   R_USER = ",
90
  cat("\n\nLocation for personal configuration files is\n   R_USER = ",
91
    ruser, "\n\n", sep = "")
91
      ruser, "\n\n", sep = "")
92
## see if there are personal configuration files
92
  ## see if there are personal configuration files
93
file.exists(file.path(ruser, c("Rconsole", "Rdevga")))
93
  file.exists(file.path(ruser, c("Rconsole", "Rdevga")))
94
 
94
 
95
## show the configuration files used
95
  ## show the configuration files used
96
showConfig <- function(file)
96
  showConfig <- function(file)
97
{
97
  {
98
    ruser <- Sys.getenv("R_USER")
98
      ruser <- Sys.getenv("R_USER")
99
    path <- file.path(ruser, file)
99
      path <- file.path(ruser, file)
100
    if(!file.exists(path)) path <- file.path(R.home(), "etc", file)
100
      if(!file.exists(path)) path <- file.path(R.home(), "etc", file)
101
    file.show(path, header = path)
101
      file.show(path, header = path)
102
}
102
  }
103
showConfig("Rconsole")
103
  showConfig("Rconsole")
-
 
104
})
104
}
105
}
105
\keyword{utilities}
106
\keyword{utilities}