Skip to content
Browse files

sys.source() didn't handle run-time errors properly

git-svn-id: https://svn.r-project.org/R/trunk@62419 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information...
1 parent 1f7f51a commit 922de538c3757e20f02a4e002666574b80bd07dc murdoch committed Mar 27, 2013
Showing with 10 additions and 1 deletion.
  1. +9 −0 doc/NEWS.Rd
  2. +1 −1 src/library/base/R/source.R
View
9 doc/NEWS.Rd
@@ -72,6 +72,15 @@
}
}
+\section{\Rlogo CHANGES IN R 3.0.0 patched}{
+ \subsection{BUG FIXES}{
+ \itemize{
+ \item \code{sys.source()} did not report error locations when
+ \code{keep.source = TRUE}.
+ }
+ }
+}
+
\section{\Rlogo CHANGES IN R 3.0.0}{
\subsection{SIGNIFICANT USER-VISIBLE CHANGES}{
\itemize{
View
2 src/library/base/R/source.R
@@ -255,6 +255,6 @@ function(file, envir = baseenv(), chdir = FALSE,
on.exit(setwd(owd), add = TRUE)
setwd(path)
}
- for (i in exprs) eval(i, envir)
+ for (i in seq_along(exprs)) eval(exprs[i], envir)
invisible()
}

0 comments on commit 922de53

Please sign in to comment.
Something went wrong with that request. Please try again.