The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 37... Line 37...
37
  \code{\link{Sys.setlocale}} for ways to set locales.
37
  \code{\link{Sys.setlocale}} for ways to set locales.
38
}
38
}
39
\examples{
39
\examples{
40
Sys.localeconv()
40
Sys.localeconv()
41
## The results in the C locale are
41
## The results in the C locale are
42
##    decimal_point     thousands_sep          grouping   int_curr_symbol 
42
##    decimal_point     thousands_sep          grouping   int_curr_symbol
43
##              "."                ""                ""                "" 
43
##              "."                ""                ""                ""
44
##  currency_symbol mon_decimal_point mon_thousands_sep      mon_grouping 
44
##  currency_symbol mon_decimal_point mon_thousands_sep      mon_grouping
45
##               ""                ""                ""                "" 
45
##               ""                ""                ""                ""
46
##    positive_sign     negative_sign   int_frac_digits       frac_digits 
46
##    positive_sign     negative_sign   int_frac_digits       frac_digits
47
##               ""                ""             "127"             "127" 
47
##               ""                ""             "127"             "127"
48
##    p_cs_precedes    p_sep_by_space     n_cs_precedes    n_sep_by_space 
48
##    p_cs_precedes    p_sep_by_space     n_cs_precedes    n_sep_by_space
49
##            "127"             "127"             "127"             "127" 
49
##            "127"             "127"             "127"             "127"
50
##      p_sign_posn       n_sign_posn 
50
##      p_sign_posn       n_sign_posn
51
##            "127"             "127"
51
##            "127"             "127"
52
 
52
 
53
## Now try your default locale (which might be "C").
53
## Now try your default locale (which might be "C").
54
\dontrun{old <- Sys.getlocale()
54
\dontrun{old <- Sys.getlocale()
55
## The category may not be set:
55
## The category may not be set:
56
## the following may do so, but it might not be supported. 
56
## the following may do so, but it might not be supported.
57
Sys.setlocale("LC_MONETARY", locale = "")
57
Sys.setlocale("LC_MONETARY", locale = "")
58
Sys.localeconv()
58
Sys.localeconv()
59
## or set an appropriate value yourself, e.g.
59
## or set an appropriate value yourself, e.g.
60
Sys.setlocale("LC_MONETARY", "de_AT")
60
Sys.setlocale("LC_MONETARY", "de_AT")
61
Sys.localeconv()
61
Sys.localeconv()