-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* gslab-econ/gslab-python#26 Demonstrates using CL args * More edits/testing * Removes gslab_scons1 and edits SConstruct * #28 Implements PR * gslab_python#26 Removes print statement * #28 Fixes spacing
- Loading branch information
Showing
13 changed files
with
84 additions
and
99 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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,6 +1,6 @@ | ||
scons: done reading SConscript files. | ||
scons: Building targets ... | ||
build_lyx(["build/paper/paper.pdf"], ["source/paper/paper.lyx"]) | ||
Install directory: "build/paper" as "release/paper" | ||
build_r(["build/data/data.txt"], ["source/data/build.R"]) | ||
scons: `release' is up to date. | ||
state_of_repo(["state_of_repo.log"], []) | ||
scons: done building targets. |
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,4 +1,8 @@ | ||
Import('env') | ||
|
||
env.BuildR(target = ['#build/data/data.txt'], | ||
source = ['#source/data/build.R']) | ||
|
||
source = 'build.R' | ||
target_name = 'data' | ||
target = ['#build/data/%s.txt' % target_name] | ||
env.BuildR(target, source, CL_ARG=target_name) # Demonstrates using command line arguments | ||
|
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,3 +1,8 @@ | ||
set.seed(1) | ||
x <- sample(1:10, 1000, replace = T) | ||
write.table(x, "build/data/data.txt", sep = "|", row.names = FALSE, col.names = TRUE, quote = FALSE) | ||
args = commandArgs(TRUE) | ||
main <- function(i){ | ||
x <- seq(-10, 10, 0.1) | ||
write.table(x, sprintf("build/data/%s.txt", i), sep = "|", | ||
row.names = FALSE, col.names = TRUE, quote = FALSE) | ||
} | ||
|
||
main(args[1]) |
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