wwwPrep | R Documentation |
Many shiny apps for speech experiments require resources (like WAV files) in the www subdirectory. This command takes care of gathering datafiles and putting them in the appropriate directory for
wwwPrep(
from = NULL,
is_dir = FALSE,
path = ".",
recordJS = FALSE,
volumeCalibration = FALSE,
HugginsPitchScreen = FALSE,
AntiphaseScreen = FALSE
)
from |
A character vector of filenames or a single directory name. Leave |
is_dir |
Boolean. Is 'from' a directory? |
path |
A character vector naming the path to the parent directory of 'www'. Defaults to working directory. |
recordJS |
Boolean. Should the JavaScript files for audio recording be copied to 'www'? (Not necessary if using any of the speechcollectr audio recording functions) |
volumeCalibration |
Boolean. Should |
HugginsPitchScreen |
Boolean. Should |
AntiphaseScreen |
Boolean. Should |
A www subdirectory in the current working directory. Success messages will be printed in the console as each step towards creating the directory is completed.
# If you wanted to use the Huggins Pitch Headphone Screen,
# You could get the audio in the right place with the following command:
wwwPrep(HugginsPitchScreen = TRUE)
# But to run this only once, and not put it in your app.R file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.