-
Notifications
You must be signed in to change notification settings - Fork 18
Merge eScience Center and JASP versions #12
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
Merged
Merged
Changes from 193 commits
Commits
Show all changes
203 commits
Select commit
Hold shift + click to select a range
3331824
Add minimal example
PabRod edcedeb
Use examples instead of dummyanalysis
PabRod 80879bd
Add renv.lock to repo
PabRod a7f7e9e
More dummy functionality
PabRod a7b2a1b
Create manual input
PabRod 4b5f914
Finally some interactivity
PabRod baa2a87
Update lock file
PabRod b307421
Improve AddOne example
PabRod d6345c8
Remove text examples
PabRod 28a8666
Problematic snippet regarding plots
PabRod ddbbc47
Firt example with data
PabRod af71572
adding github workflow for merging jaspModules
recap aa2f5a2
adding github workflow for merging jaspModules
recap da07f45
new jaspmodule
recap 420c7c5
Merge pull request #1 from recap/dev/template
recap c04d62d
Revert "Merge pull request #1 from recap/dev/template"
actions-user d50ce94
update workflow
recap b51cf34
Merge branch 'dev/template' of github.com:jasp-escience/jaspModuleTem…
recap ff4f626
new myJaspModule module
recap e5495e0
Merge pull request #2 from recap/dev/template
recap d080e94
Revert "Merge pull request #2 from recap/dev/template"
actions-user a066647
update README
recap 9c186f6
adding PR open check for DESCRIPTION file
recap 9e7e122
creating faulty module
recap 6b87ebf
adding myAwsomeModule
recap e213321
Merge pull request #3 from recap/dev/template
recap f9b48f9
Revert "Merge pull request #3 from recap/dev/template"
actions-user 9ed2ee9
Update DESCRIPTION
PabRod 7deb734
Merge pull request #4 from PabRod/dev/template
PabRod 074c758
Revert "Merge pull request #4 from PabRod/dev/template"
actions-user 01f9e5c
new workflow to create repo
recap 74be81d
new workflow to create repo
recap 189976c
new workflow to create repo
recap e2fb568
new workflow to create repo
recap 6188789
new module myJaspModule
recap cfbef07
Merge pull request #5 from recap/dev/template
recap 650b026
Revert "Merge pull request #5 from recap/dev/template"
actions-user c1360ca
new workflow to create repo
recap cbb676d
Merge branch 'dev/template' of github.com:jasp-escience/jaspModuleTem…
recap dd1c80d
new module myJaspModule
recap 7d7f8be
Merge pull request #6 from recap/dev/template
recap a62789d
Revert "Merge pull request #6 from recap/dev/template"
actions-user 826e654
update workflow using PAT
recap 197c997
new module myJaspModule
recap 62c20d5
Merge pull request #7 from recap/dev/template
recap 64adfcd
Revert "Merge pull request #7 from recap/dev/template"
actions-user d9c7836
update workflow using PAT
recap d554001
update workflow using PAT
recap 0047caa
new module myJaspModule
recap 7f315d7
Merge pull request #8 from recap/dev/template
recap 6ce0cc7
Revert "Merge pull request #8 from recap/dev/template"
actions-user 3ccf01e
new workflow to create repo
recap 5de46d9
update README
recap e847d4f
Merge pull request #9 from jasp-escience/dev/template
recap 2761849
Revert "Merge pull request #9 from jasp-escience/dev/template"
actions-user a3ea110
adding workflows to main branch
recap 5ace604
new module myJaspModule
recap 622abb0
Merge pull request #10 from recap/main
recap 96b2071
Revert "Merge pull request #10 from recap/main"
actions-user 3c298bd
only run template workflows when PR is from forked repos
recap 1ec524b
updating workflow to add submodule to modules repo
recap 6c75bbe
new module
recap dd35463
Merge pull request #11 from recap/main
recap 56db853
Revert "Merge pull request #11 from recap/main"
actions-user 7e6250a
updating workflow to add submodule to modules repo
recap e46323f
new module
recap 82d384d
Merge pull request #12 from recap/main
recap b33049a
Revert "Merge pull request #12 from recap/main"
actions-user 8f43d82
updating workflow to add submodule to modules repo
recap c5d1622
new module
recap 8eecab0
Merge pull request #13 from recap/main
recap 0f0c843
updating workflow to add submodule to modules repo
recap 9fbf312
new module
recap 9ae5dfd
Merge pull request #14 from recap/main
recap 0122506
updating workflow to add submodule to modules repo
recap 8e10709
updating workflow to add submodule to modules repo
recap 855672a
new module
recap 29ae05b
Merge pull request #15 from recap/main
recap d4e65ac
Revert "Merge pull request #15 from recap/main"
actions-user e3c182f
updating workflow to add submodule to modules repo
recap bf5fea1
new module
recap 4ece16a
Merge pull request #16 from recap/main
recap a7a5db5
Revert "Merge pull request #16 from recap/main"
actions-user 6d9d5a9
updating workflow to add submodule to modules repo
recap 3effe54
new module
recap 163a8c0
Merge pull request #17 from recap/main
recap ee763cc
Revert "Merge pull request #17 from recap/main"
actions-user b35c584
updating workflow to add submodule to modules repo
recap 7c3760e
new module
recap 159c9ef
Merge pull request #18 from recap/main
recap 1ff369f
updating workflow to add submodule to modules repo
recap 99ee5ce
new module
recap 9d48366
Merge pull request #19 from recap/main
recap 939dbda
Revert "Merge pull request #19 from recap/main"
actions-user 4ea3f70
updating workflow to add submodule to modules repo
recap 84f7954
Merge branch 'main' of github.com:jasp-escience/jaspModuleTemplate
recap a956bf0
increase security in PR workflow.
recap 3732b91
new module
recap 9185655
increase security in PR workflow.
recap dcd8261
Merge branch 'jasp-escience:main' into main
recap a4fd350
increase security in PR workflow.
recap cb754d2
increase security in PR workflow.
recap 6aceba9
Merge branch 'jasp-escience:main' into main
recap bfd3ec0
Merge pull request #22 from recap/main
recap 5d00a29
Revert "Merge pull request #22 from recap/main"
actions-user f00d0c1
increase security in PR workflow.
recap 4f75bf0
new module
recap da3bdfc
Merge pull request #23 from recap/main
recap 6e62b6c
Revert "Merge pull request #23 from recap/main"
actions-user b5998f3
increase security in PR workflow.
recap 9e2ec40
increase security in PR workflow.
recap de32330
new module
recap f0d772d
Merge pull request #24 from recap/main
recap 81fee16
increase security in PR workflow.
recap 10d67e3
increase security in PR workflow.
recap d6037fd
new module
recap 8742464
test modify workflow
recap e4d8b3c
Merge pull request #25 from recap/main
recap 7aa11e7
Revert "Merge pull request #25 from recap/main"
actions-user 38d30e3
increase security in PR workflow.
recap 3178f2a
increase security in PR workflow.
recap 3776744
adding check for changes in .github/workflows
recap 268eb09
adding check for changes in .github/workflows
recap 5d9bb95
adding check for changes in .github/workflows
recap 25e1dc8
new module
recap 8bbe1a1
new module
recap 7b667e6
Merge pull request #27 from recap/main
recap a9f88a7
manual revert
recap dfad630
break if revert fails
recap 980f7a2
new module
recap 7a5e4d8
Merge pull request #28 from recap/main
recap fcea838
Revert "Merge pull request #28 from recap/main"
actions-user 7a0e405
add new steps to check if module exists on PR creation
recap bc4c3b2
new module
recap 2b17640
add new steps to check if module exists on PR creation
recap 6928dc8
add new steps to check if module exists on PR creation
recap d9a2b06
Update ProcessData
PabRod a3e9c29
Add plotting example
PabRod 5bb176d
Merge pull request #30 from jasp-escience/dummy
PabRod e2e5e55
Revert "Merge pull request #30 from jasp-escience/dummy"
actions-user ba1621d
updating workflow
recap 8497c0f
test branch
recap 141677b
update workflow
recap da54bb2
update workflow
recap 40909a7
update workflow
recap c2dc6a6
update workflow
recap 29ea191
Merge branch 'main' of github.com:jasp-escience/jaspModuleTemplate in…
recap b9aee74
Merge pull request #32 from jasp-escience/test/test_branch
recap 560f4cc
Add example icon
PabRod 45707b5
update workflow to not trigger when org is jasp-escience
recap 7ba187c
test file
recap 071130f
Merge pull request #33 from jasp-escience/test/test_branch
recap 0cd68df
remove file
recap 3f2e635
Revert "Revert "Merge pull request #30 from jasp-escience/dummy""
PabRod 8f573fe
Merge remote-tracking branch 'origin/main' into dummy
PabRod 0c583bb
Merge pull request #34 from jasp-escience/dummy
PabRod 6979f78
Merge branch 'main' of github.com:recap/jaspModuleTemplate
recap 1fb37e0
Merge pull request #35 from recap/main
recap edf55c0
Revert "Merge pull request #35 from recap/main"
actions-user 51e70d2
new module
recap 4cbe29f
update workflow to delte workflows when creating new repo
recap ea9c249
Merge branch 'jasp-escience:main' into main
recap 7e679b7
Merge pull request #36 from recap/main
recap 966f2a9
Revert "Merge pull request #36 from recap/main"
actions-user 1164e5a
update workflow to delte workflows when creating new repo
recap 51d3ffd
Merge branch 'main' of github.com:jasp-escience/jaspModuleTemplate
recap 0547c18
new module (#37)
recap c941340
Revert "new module (#37)"
actions-user aa2ddf7
update workflow to delte workflows when creating new repo
recap 9f7e6f4
Merge branch 'main' of github.com:jasp-escience/jaspModuleTemplate
recap da261a3
new module (#38)
recap 2f39c5b
Revert "new module (#38)"
actions-user eed5432
Remove line invoking Travis
PabRod 54e11dd
Edit DESCRIPTION and update dependencies
PabRod cf6a10f
Fix wrong package name
PabRod a5efade
Add tables example
PabRod 3982045
Merge remote-tracking branch 'origin/develop'
PabRod 751b317
Add renv initializer
PabRod 8a84bf1
disable workflows on pull_request
recap 874e01a
Temporarily remove actions
PabRod e7b1adf
Revert "Temporarily remove actions"
PabRod edb2c32
Update R/examples.R
PabRod c90875e
Update R/examples.R
PabRod 5d8dbec
Update inst/Description.qml
PabRod 97d3834
Revert "Remove line invoking Travis"
PabRod 08ee90f
revert workflows
recap b8e1aac
Merge branch 'actions'
PabRod a4603c8
Apply proper dataset subsetting
PabRod 2d9b56e
Apply suggestions to parabolaPlot
PabRod 78eb154
Use camelCase for functions
PabRod 3bb5b76
Add qsTr wrapper to all text, title and menu fields in the qml files
PabRod 33bea85
Add documentation to inputs, and improve readability
PabRod 1837b43
Capitalize first letter of all qml files
PabRod bfb36a0
Remove (temporarily) translations.yml
PabRod 55d3151
Revert "Remove (temporarily) translations.yml"
PabRod 9e771f6
Recover and deactivate translations.yml
PabRod b84a2ab
Add info fields to all forms
PabRod 07fb95c
Properly deactivate translation GitHub action
PabRod 3e95e55
Properly deactivate translations GitHub action
PabRod 82feb35
Remove (temporarily) translations.yml
PabRod 6fb74b9
Be explicit about requiresData
PabRod 76f749b
Simplify Data.qml
PabRod 721c6fd
Edit README
PabRod 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 hidden or 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,5 @@ | ||
^renv$ | ||
^renv\.lock$ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^\.travis\.yml$ |
This file contains hidden or 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 @@ | ||
source("renv/activate.R") |
This file contains hidden or 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 hidden or 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 hidden or 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,18 +1,19 @@ | ||
on: | ||
push: | ||
paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win', '**.yml'] | ||
pull_request: | ||
paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win'] | ||
schedule: | ||
- cron: '13 12 * * 1-5' | ||
workflow_dispatch: | ||
|
||
# on: | ||
# push: | ||
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win', '**.yml'] | ||
# pull_request: | ||
# paths: ['**.R', 'tests/**', '**.Rd', '**.c', '**.cpp', '**.h', '**.hpp', 'DESCRIPTION', 'NAMESPACE', 'MAKEVARS', 'MAKEVARS.win'] | ||
# schedule: | ||
# - cron: '13 12 * * 1-5' | ||
|
||
name: unit-tests | ||
|
||
jobs: | ||
|
||
unit-tests: | ||
|
||
uses: jasp-stats/jasp-actions/.github/workflows/unittests.yml@master | ||
with: | ||
needs_JAGS: false | ||
needs_JAGS: false | ||
needs_igraph: false |
This file contains hidden or 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 hidden or 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,5 @@ | ||
import(jaspBase) | ||
export(addOne) | ||
export(processData) | ||
export(processTable) | ||
export(parabola) |
This file contains hidden or 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,56 @@ | ||
addOne <- function(jaspResults, dataset, options) { | ||
result <- as.character(options$my_number + 1) # options$my_number comes from the menu created by inst/qml/integer.qml | ||
|
||
jaspResults[["result"]] <- createJaspHtml(text = result, | ||
title = "This is your result:") | ||
|
||
return() | ||
} | ||
|
||
processData <- function(jaspResults, dataset, options) { | ||
# Dataset access | ||
# options$ts --maps to--> 't' | ||
# dataset[[options$ts]] --maps to--> dataset$t | ||
result <- paste(dataset[[options$ts]], collapse = "") | ||
jaspResults[["result"]] <- createJaspHtml(text = result, | ||
title = "This is your result:") | ||
|
||
return() | ||
} | ||
|
||
processTable <- function(jaspResults, dataset, options) { | ||
# Prints the inputs as a table | ||
stats <- createJaspTable(gettext("Some descriptives")) | ||
|
||
stats$addColumnInfo(name = gettext("times")) | ||
stats$addColumnInfo(name = gettext("xs")) | ||
|
||
stats[["times"]] <- dataset[[options$ts]] | ||
stats[["xs"]] <- dataset[[options$xs]] | ||
|
||
jaspResults[["stats"]] <- stats | ||
|
||
return() | ||
} | ||
|
||
parabola <- function(jaspResults, dataset, options) { | ||
# Analysis | ||
f <- function(x) { options$a * x^2 } # Function to be plotted | ||
p <- ggplot2::ggplot() + # Plotting command | ||
ggplot2::xlim(-3, 3) + | ||
ggplot2::ylim(0, 10) + | ||
ggplot2::geom_function(fun = f) | ||
# add jasp theme | ||
p <- jaspGraphs::geom_rangeframe() + | ||
jaspGraphs::themeJaspRaw() | ||
# Aesthetics | ||
parabolaPlot <- createJaspPlot(title = gettext("Parabola"), | ||
width = 160, | ||
height = 320) | ||
parabolaPlot$dependOn(c("a")) # Refresh view whenever a changes | ||
parabolaPlot$info <- gettext("This figure displays a parabola specified via the `a` option.") | ||
jaspResults[["parabolaPlot"]] <- parabolaPlot | ||
parabolaPlot$plotObject <- p | ||
|
||
return() | ||
} |
This file contains hidden or 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,11 @@ | ||
# jaspModuleTemplate | ||
# jaspModuleTemplate | ||
|
||
This template repository is a starting point for developing a new module for JASP. It contains the necessary files and structure to get you started. | ||
|
||
## Forking this repository | ||
|
||
Fork this template repository to your own GitHub account to start developing your module. You can then clone the repository to your local machine and start developing your module. | ||
|
||
## Contributing back new module to JASP | ||
|
||
Once you have developed your module, you can contribute it back to JASP by creating a pull request. The JASP team will review your module and provide feedback. Once your module is accepted, a new repo is created in the JASP organization and your module is added to the JASP module repository. | ||
PabRod marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,53 @@ | ||
// | ||
// Copyright (C) 2013-2018 University of Amsterdam | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public | ||
// License along with this program. If not, see | ||
// <http://www.gnu.org/licenses/>. | ||
// | ||
import QtQuick 2.8 | ||
import QtQuick.Layouts 1.3 | ||
import JASP.Controls 1.0 | ||
import JASP.Widgets 1.0 | ||
import JASP 1.0 | ||
|
||
Form | ||
{ | ||
|
||
Text | ||
{ | ||
text: qsTr("This example shows how to load a dataset and perform a simple operation on it") | ||
} | ||
|
||
VariablesForm | ||
{ | ||
AvailableVariablesList { name: "allVariables" } | ||
|
||
AssignedVariablesList { | ||
name: "ts" | ||
label: qsTr("Times (t)") | ||
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the time.") | ||
singleVariable: true | ||
allowedColumns: ["scale"] | ||
} | ||
|
||
AssignedVariablesList { | ||
name: "xs" | ||
label: qsTr("Positions (x)") | ||
info: qsTr("This info entry adds documentation to the (i) icon in the analysis file. E.g., Specify variable containing the positions.") | ||
singleVariable: true | ||
allowedColumns: ["scale"] | ||
} | ||
} | ||
|
||
} |
This file contains hidden or 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,44 @@ | ||
// | ||
// Copyright (C) 2013-2018 University of Amsterdam | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as | ||
// published by the Free Software Foundation, either version 3 of the | ||
// License, or (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public | ||
// License along with this program. If not, see | ||
// <http://www.gnu.org/licenses/>. | ||
// | ||
import QtQuick 2.8 | ||
import QtQuick.Layouts 1.3 | ||
import JASP.Controls 1.0 | ||
import JASP.Widgets 1.0 | ||
import JASP 1.0 | ||
|
||
Form | ||
{ | ||
|
||
Text | ||
{ | ||
text: qsTr("This example shows how to manually introduce an input and perform a simple operation on it") | ||
} | ||
|
||
IntegerField | ||
{ | ||
name: "my_number" // This will map to options$my_number in R | ||
label: qsTr("Type a number") // qsTr allows for future translations | ||
|
||
// We can add some extra control parameters | ||
min: 1 | ||
defaultValue: 10 | ||
fieldWidth: 50 | ||
max: 1000 | ||
} | ||
|
||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.