~l3on/ubuntu/precise/rkward/rebuild1

« back to all changes in this revision

Viewing changes to rkward/plugins/00saveload/import/load_data.js

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2010-10-04 14:30:00 UTC
  • mfrom: (12.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101004143000-qey73molmxxwy4w6
Tags: 0.5.4-1
* new upstream release
* bump standards version to 3.9.1 (no changes needed)
* no more need to remove svncopy.sh-script in rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
function calculate () {
5
5
        var other_env = false;
6
 
        if (getValue ("other_env")) {
 
6
        if (getValue ("envir.active")) {
7
7
                other_env = true;
8
 
                envir = getValue ("envir");
 
8
                envir = ".GlobalEnv$" + getValue ("envir");
9
9
        } else {
10
10
                envir = "globalenv()";
11
11
        }
12
12
 
13
13
        if (other_env) {
14
 
                echo ('assign ("' + envir + ', new.env (parent=globalenv()), envir=globalenv())\n');
 
14
                echo (envir + ' <- new.env (parent=globalenv())\n');
15
15
        }
16
16
        echo ('load (file="' + getValue("file") + '", envir=' + envir + ')\n');
17
17
}