Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christophe Rhodes
swankr
Commits
3ca13eb5
Commit
3ca13eb5
authored
Oct 23, 2011
by
Christophe Rhodes
Browse files
fix for visible values from region and interactive eval
editing thinko: need tmp$value (not just value)
parent
040918c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
swank.R
View file @
3ca13eb5
...
...
@@ -519,7 +519,7 @@ withRetryRestart <- function(description, expr) {
envir
=
globalenv
())))
})
output
<-
paste
(
output
,
sep
=
""
,
collapse
=
"\n"
)
if
(
tmp
$
visible
)
{
list
(
output
,
prin1ToString
(
value
))
list
(
output
,
prin1ToString
(
tmp
$
value
))
}
else
{
list
(
output
,
"# invisible value"
)
}
...
...
@@ -529,7 +529,7 @@ withRetryRestart <- function(description, expr) {
withRetryRestart
(
"retry SLIME interactive evaluation request"
,
tmp
<-
withVisible
(
eval
(
parse
(
text
=
string
),
envir
=
globalenv
())))
if
(
tmp
$
visible
)
{
prin1ToString
(
value
)
prin1ToString
(
tmp
$
value
)
}
else
{
"# invisible value"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment