sebsilas / SAA

Singing Ability Assessment
Other
0 stars 0 forks source link

Error in musicassessr::setup_pages( #1

Open haganicolau opened 1 month ago

haganicolau commented 1 month ago

I followed all the steps mentioned in the tutorial, but the application didn't work. I need some help to fix it.

I am working on Windows, and my R file is like this:

setwd('C://Users//CLIENTE (TSI-INFO)//Documents//saa_program')

library(SAA)
library(musicassessr)

musicassessr::setup_pages(
input_type = "microphone",
demo = FALSE,
headphones = TRUE,
SNR_test = FALSE,
get_user_info = TRUE,
get_instrument_range = FALSE,
test_type = "voice",
microphone_test = TRUE,
requirements_page = TRUE,
show_microphone_type_page = TRUE
)

SAA_standalone(
app_name = "app_name",
num_items = list(long_tones = 2L, arrhythmic = 2L, rhythmic = 2L),
feedback = TRUE,
SNR_test = FALSE,
get_range = FALSE,
examples = 0
)

warnings()

I received this error:


Error in musicassessr::setup_pages(input = "microphone", demo = demo, : argumento não utilizado (asynchronous_api_mode = asynchronous_api_mode)```
![image_2024-07-02_194008317](https://github.com/sebsilas/SAA/assets/7843040/0f64fbe8-faf9-41b9-a9ee-7b7cfea869aa)
sebsilas commented 1 month ago

Hi @haganicolau, thank you for reporting this and sorry for your troubles. The SAA package went out of sync with musicassessr. Please could you try reinstalling SAA and make sure you update all other packages too when it asks, especially musicassessr?

I assume you just reported the distinct call to musicassessr::setup_pages to demonstrate the error - but just in case, you don't need to call that yourself when you run the SAA functions.

Also, I should note that I am not sure yet how much of this package works on Windows, but I will be glad to hear your reports to try and add support where needed.

Please let me know how you get on!

All the best, Seb