Skip to content
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

Experiment not running online on Pavlovia #4

Closed
Khushbus21 opened this issue Jul 13, 2021 · 11 comments
Closed

Experiment not running online on Pavlovia #4

Khushbus21 opened this issue Jul 13, 2021 · 11 comments

Comments

@Khushbus21
Copy link

Khushbus21 commented Jul 13, 2021

Hey, I wanted to run your experiment online on Pavlovia but after starting it gives an error, Just after the clicking spacebar on the instructions page. Can you help me solve this, please?
error statement:
ReferenceError: stimuli_count is not defined

@zen-juen
Copy link
Member

zen-juen commented Jul 14, 2021

Hi @Kbs21 thanks for reaching out! Can you share with me your PsychoPy version? (Asking because there are some version related incompatibilities with complex span as reported in #3)

@Khushbus21
Copy link
Author

yes sure, my Psychopy version is 2021.1.4

@zen-juen
Copy link
Member

zen-juen commented Jul 16, 2021

Did you make any changes to the experiment file that you downloaded on this repo? Seems like the initiation of stimuli_count was not properly done before the first phase (presentation of individual letters) started. Can you check if stimuli_count is set to 2 under "Begin Experiment" in the customized code component under the show_letters routine?

image

Otherwise, you can try updating to the latest PsychoPy version 2021.2.0 here: https://github.com/psychopy/psychopy/releases/tag/2021.2.0

@Khushbus21
Copy link
Author

Screenshot (20)
Yes, it is set to 2. I did not make any change to this repo after downloading it.

@Khushbus21
Copy link
Author

Also I have one more issue, I am trying to run the source on R studio and it gives this error :
error
Can you please help me figure this out, there is no extra '<' in the code, the code is from your experiment description, the first step-" # Download the function used to preprocess the data " part.

@zen-juen
Copy link
Member

Could you upgrade your PsychoPy version to the 2021.2.0 and let me know if this works? (It should since it's working on my local copy using the latest version)

Regarding the source code error, could you

  1. set the working directory of your R script to the statistics folder of the repo ("../ComplexSpan/statistics")
    and
  2. try with source("preprocessing.R") and source("processing.R")

@Khushbus21
Copy link
Author

Hey, thanks for the reply. It turns out that easystats ecosystem is currently undergoing a bit of restructuring, and this is the reason why I can't download the packages (I'll have to wait until easystats/effectsize#361 is merged).

For now, it is recommend that I download the needed packages from CRAN. Can you please help me with the required packages

@zen-juen
Copy link
Member

Hi @Kbs21 the easystats package is needed only if you want to produce the figures using make_figures.R in this repo, but otherwise to run the preprocessing and processing scripts you can simply install.packages(c("tidyverse", "dplyr")) before running the code 😄

@Khushbus21
Copy link
Author

Khushbus21 commented Jul 22, 2021

Hey, I am getting this error on using process_WM function, can you help resolve this, I tried resinstalling packages magrittr and dplyr but the session gets aborted or it does not help and gives the same error.

process_WM(path_to_csv)
Error in dplyr::mutate(data, Span_Simple = max(Simple_Task$Set_Size) - :
could not find function "%>%"

@zen-juen
Copy link
Member

if you have tidyverse installed already, could you run library(tidyverse) before running the source code?

@Kbs2103
Copy link

Kbs2103 commented Jul 23, 2021

Thanks a lot for your help, it all worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants