-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
title is swizzled to record the title of images, which is now stored …
…in the sessionimage table
- Loading branch information
Showing
11 changed files
with
119 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
Package: rc2 | ||
Type: Package | ||
Title: Assists communication with rc2compute engine | ||
Version: 2.0 | ||
Date: 2016-05-23 | ||
Version: 3.0 | ||
Date: 2017-03-23 | ||
Author: Mark Lilback | ||
Maintainer: Mark Lilback <[email protected]> | ||
Description:Assists rc2compute engine | ||
License: BSD | ||
Depends: stringr | ||
LazyLoad: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export("help", "rc2.defineFunction", "rc2.pngdev", "rc2.pngoff") | ||
export("help", "rc2.defineFunction", "rc2.pngdev", "rc2.pngoff", "rc2.errlog") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5.23.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"msg": "execScript", "argument": "rnorm(11)"} |
Submodule rc2root
updated
9 files
+5 −8 | containers/README.md | |
+1 −6 | containers/appserver/Dockerfile | |
+3 −2 | containers/appserver/debug.yml | |
+2 −1 | containers/appserver/docker.yml | |
+5 −4 | containers/compute/Dockerfile | |
+1 −0 | imageInfo/.perl-version | |
+22 −0 | imageInfo/README.md | |
+145 −0 | imageInfo/parser.pl | |
+2 −1 | rc2.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
library(inline) | ||
local( { | ||
myenv <- new.env(parent = emptyenv()) | ||
oldtitle <- graphics::title | ||
#assign("oldtitle", graphics::title, envir = myenv) | ||
|
||
#oldtitle <- title | ||
mytitle <- function(...) { | ||
args <- list(...) | ||
if (!is.null(args$main)) { | ||
rc2.errlog("rc2.imgtitle=%s\n", args$main) | ||
} | ||
oldtitle(...) | ||
} | ||
|
||
inc <- ' | ||
/* This is taken from envir.c in the R 2.15.1 source | ||
https://github.com/SurajGupta/r-source/blob/master/src/main/envir.c | ||
*/ | ||
#define FRAME_LOCK_MASK (1<<14) | ||
#define FRAME_IS_LOCKED(e) (ENVFLAGS(e) & FRAME_LOCK_MASK) | ||
#define UNLOCK_FRAME(e) SET_ENVFLAGS(e, ENVFLAGS(e) & (~ FRAME_LOCK_MASK)) | ||
' | ||
|
||
src <- ' | ||
if (TYPEOF(env) == NILSXP) | ||
error("use of NULL environment is defunct"); | ||
if (TYPEOF(env) != ENVSXP) | ||
error("not an environment"); | ||
UNLOCK_FRAME(env); | ||
// Return TRUE if unlocked; FALSE otherwise | ||
SEXP result = PROTECT( Rf_allocVector(LGLSXP, 1) ); | ||
LOGICAL(result)[0] = FRAME_IS_LOCKED(env) == 0; | ||
UNPROTECT(1); | ||
return result; | ||
' | ||
|
||
unlockEnvironment <- cfunction(signature(env = "environment"), | ||
includes = inc, | ||
body = src) | ||
|
||
|
||
ns_g <- asNamespace('graphics') | ||
unlockEnvironment(ns_g) | ||
unlockBinding("title", ns_g) | ||
ns_g$title <- mytitle | ||
lockBinding("title", ns_g) | ||
detach(package:graphics) | ||
library(graphics) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters