Skip to content

Commit b61282f

Browse files
author
hornik
committed
Fix typos spotted by Duncan Murdoch.
git-svn-id: https://svn.r-project.org/R/trunk@89123 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7e7b00d commit b61282f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/manual/R-lang.texi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,14 +1797,14 @@ names(x)[3] <<- "Three"
17971797
@end example
17981798
is equivalent to
17991799
@example
1800-
`*tmp*` <<- get(x, envir=parent.env(), inherits=TRUE)
1800+
`*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)
18011801
names(`*tmp*`)[3] <- "Three"
18021802
x <<- `*tmp*`
18031803
rm(`*tmp*`)
18041804
@end example
18051805
and also to
18061806
@example
1807-
`*tmp*` <- get(x,envir=parent.env(), inherits=TRUE)
1807+
`*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)
18081808
x <<- "names<-"(`*tmp*`, value="[<-"(names(`*tmp*`), 3, value="Three"))
18091809
rm(`*tmp*`)
18101810
@end example
@@ -1828,7 +1828,7 @@ value of @code{e} on the RHS of the @I{superassignment} statement. It sets
18281828
@end example
18291829
That is, the @I{superassignment} is equivalent to the four lines
18301830
@example
1831-
`*tmp*` <- get(e, envir=parent.env(), inherits=TRUE)
1831+
`*tmp*` <- get("e", envir=parent.env(), inherits=TRUE)
18321832
`*tmp*`[i] <- e[i]+1
18331833
e <<- `*tmp*`
18341834
rm(`*tmp*`)
@@ -1840,14 +1840,14 @@ x[is.na(x)] <<- 0
18401840
@end example
18411841
is equivalent to
18421842
@example
1843-
`*tmp*` <- get(x,envir=parent.env(), inherits=TRUE)
1843+
`*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)
18441844
`*tmp*`[is.na(x)] <- 0
18451845
x <<- `*tmp*`
18461846
rm(`*tmp*`)
18471847
@end example
18481848
and not to
18491849
@example
1850-
`*tmp*` <- get(x,envir=parent.env(), inherits=TRUE)
1850+
`*tmp*` <- get("x", envir=parent.env(), inherits=TRUE)
18511851
`*tmp*`[is.na(`*tmp*`)] <- 0
18521852
x <<- `*tmp*`
18531853
rm(`*tmp*`)

0 commit comments

Comments
 (0)