-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy r defs #99
Merged
Merged
Lazy r defs #99
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
42d7ff5
did the binary ones
behrica ce9afa4
Merge branch 'lazyRDefs' of github.com:behrica/clojuress into lazyRDefs
behrica 51aa30e
refactored
behrica ee88ce2
refcatored
behrica 7202804
Merge branch 'lazyRDefs' of https://github.com/behrica/clojuress into…
behrica a58b5e9
added quarto and leiningen
behrica 273dbb1
made r_xxx functions as defn
behrica 0785d59
all test tests for leiningen
behrica 8db882e
Merge branch 'lazyRDefs' of https://github.com/behrica/clojuress into…
behrica 4c1d413
fixed leiningen addition
behrica e7422b5
worked on str-md
behrica 016e0bb
added test fro bra<
behrica e0887e2
one more test
behrica 71dd39d
cleaned up
behrica 44d4d51
replaced bra macro by functions
behrica ecac1cc
re-added bracked-data
behrica 41dace9
comment back
behrica 33d8b7e
make all lazy in plotting
behrica c952bed
made plotting full lazy requiring R
behrica 50c1978
Merge branch 'master' of https://github.com/scicloj/clojisr into lazy…
behrica f46bbfe
fixed tests on CI
behrica 5a711b4
refactored to defn with docu
behrica 7118fc2
aaded misisng operators
behrica ebfe240
Merge branch 'master' of github.com:scicloj/clojisr into lazyRDefs
behrica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ pom.xml.asc | |
.clay* | ||
*qmd | ||
.clerk | ||
.calva |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(ns clojisr.v1.applications.plotting-test | ||
(:require [clojisr.v1.applications.plotting :as plot] | ||
[clojisr.v1.r :as r] | ||
[clojure.string :as str] | ||
[clojisr.v1.applications.plotting :refer [plot->svg plot->file plot->buffered-image]] | ||
[clojure.test :refer [is deftest]])) | ||
|
||
(r/require-r '[graphics :refer [plot hist]]) | ||
|
||
(deftest plot-svg | ||
(let [svg | ||
(plot->svg | ||
(fn [] | ||
(->> rand | ||
(repeatedly 30) | ||
(reductions +) | ||
(plot :xlab "t" | ||
:ylab "y" | ||
:type "l"))))] | ||
|
||
(is ( true? | ||
(str/includes? | ||
svg | ||
"M 3.8125 -7.96875 C 3.207031 -7.96875 2.75 -7.664062 2.4375 -7.0625"))))) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this did before, so could not test it.
How is it suppoed to be used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember precisely. Some functions print something and it would be great to have the result as a string. But it's a guess (I need to remember this topic)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for example
summary()
prints to stdout