Skip to content

Commit

Permalink
Make it portable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZauchnerP committed Oct 19, 2023
1 parent af43fde commit 991f0ff
Show file tree
Hide file tree
Showing 42 changed files with 116 additions and 1,991 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Package: gmoTree
Title: Get and Modify oTree Data
Version: 0.0.3
Date: 2023-10-09
Version: 1.0.0
Date: 2023-10-19
Authors@R:
person("Patricia F.", "Zauchner", , "[email protected]", role = c("aut", "trl", "cre", "cph"),
comment = c(ORCID = "https://orcid.org/0000-0002-5938-1683"))
Description: Import, merge, and manage data from oTree experiments.
License: GPL (>= 3)
URL: https://zauchnerp.github.io/gmoTree/,
https://github.com/ZauchnerP/gmoTree
BugReports: https://github.com/ZauchnerP/gmoTree/issues
https://github.com/ZauchnerP/gmoTree/
BugReports: https://github.com/ZauchnerP/gmoTree/issues/
Depends:
R (>= 4.3.0)
Imports:
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# gmoTree 1.0.0

* Makes file names of the examples portable. Changes import_otree() code to import those files as well.

# gmoTree 0.0.3

* Minor improvement of the documentation & website.
Expand Down
12 changes: 10 additions & 2 deletions R/import_otree.R
Original file line number Diff line number Diff line change
Expand Up @@ -245,22 +245,30 @@ import_otree <- function(
# Special all apps wide definer
app_filedf$app <- stringr::str_remove(app_filedf$app,
"-[0-9]{4}-[0-9]{2}-[0-9]{2}")

# Remove file name extension
app_filedf$app <- stringr::str_remove(app_filedf$app,
".xlsx")
app_filedf$app <- stringr::str_remove(app_filedf$app,
".csv")

# Remove access information for Chats and Time
app_filedf$app <-
stringr::str_remove(app_filedf$app,
"\\s*\\(accessed [0-9]{4}-[0-9]{2}-[0-9]{2}\\)")
".\\(accessed.[0-9]{4}-[0-9]{2}-[0-9]{2}\\)")
# Info: The dot is only there to ensure portable file names for the examples!
# Was \\s* before

# Remove final underscore
app_filedf$app <- stringr::str_remove(app_filedf$app, "_$")

app_filedf$app <- stringr::str_remove(app_filedf$app, "-$")

# Special handling of Time and Chats
app_filedf$app <- gsub("ChatMessages.*", "Chats", app_filedf$app)
app_filedf$app <- gsub("PageTimes.*", "Time", app_filedf$app)
app_filedf$app <- gsub("Chat messages.*", "Chats", app_filedf$app)
app_filedf$app <- gsub("Chat.messages.*", "Chats", app_filedf$app)
# Info: The dot is only there to ensure portable file names for the examples!
app_filedf$app <- gsub("TimeSpent.*", "Time", app_filedf$app)

# Sort app-names
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![R-CMD-check](https://github.com/ZauchnerP/gmoTree/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ZauchnerP/gmoTree/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

gmoTree is an R package developed for importing, merging, and efficiently managing data obtained from running oTree (https://www.otree.org/) experiments. It's particularly valuable when dealing with complex experimental designs that span multiple sessions and generate a large number of files that need to be integrated.
gmoTree is an R package developed for importing, merging, and efficiently managing data obtained from running <a href="https://www.otree.org/" target="_blank">oTree</a> experiments. It's particularly valuable when dealing with complex experimental designs that span multiple sessions and generate a large number of files that need to be integrated.

gmoTree is not an official package of the oTree team, but it was created to complement the open-source platform.

Expand Down
Binary file removed build/vignette.rds
Binary file not shown.
47 changes: 46 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# Version 1.0.0 (Resubmission)

[x] Portable file names warning is now circumvented.

Now, there are no ERRORs or WARNINGs. But there are some notes.


## Notes

```
Notes:
* checking CRAN incoming feasibility ... [6s/16s] NOTE
Maintainer: anonymized
New submission
Possibly misspelled words in DESCRIPTION:
oTree (2:23, 8:50)
```
[x] oTree is not misspelled.

[x] The feasibility-note can be ignored according to https://mailman.stat.ethz.ch/pipermail/r-devel/2014-March/068497.html.

```
* checking for detritus in the temp directory ... NOTE
Found the following files/directories:
'lastMiKTeXException'
```
[x] Can be ignored according to https://github.com/r-hub/rhub/issues/503.

```
* checking for non-standard things in the check directory ... NOTE
Found the following files/directories:
''NULL''
```
[x] Can be ignored according to https://github.com/r-hub/rhub/issues/560.

```
* checking HTML version of manual ... NOTE
Skipping checking HTML validation: no command 'tidy' found
```
[x] A bug in rhub? https://github.com/r-hub/rhub/issues/548

# Version 0.0.1

```
Expand All @@ -12,4 +57,4 @@
```

This warning is not circumventable since my package is intended to import
data that may have this pattern (i.e., may include whitespaces).
data that may have this pattern (i.e., may include whitespaces).
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions docs/articles/intro_to_gmoTree.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/impressum.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
intro_to_gmoTree: intro_to_gmoTree.html
last_built: 2023-10-09T15:25Z
last_built: 2023-10-19T13:03Z
urls:
reference: https://zauchnerp.github.io/gmoTree/reference
article: https://zauchnerp.github.io/gmoTree/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/apptime.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/assignv.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/assignv_to_aaw.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/delete_cases.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/delete_dropouts.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/delete_duplicate.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/delete_plabels.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/delete_sessions.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/extime.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/import_otree.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/make_ids.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/messy_chat.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 991f0ff

Please sign in to comment.