An interactive shiny application to run test and item analysis. By default,
the function runs the application as a background process ("Jobs" tab in the
"RStudio" IDE). User is then free to use the R Console for other work
and to try the sample R code examples. You can still run the app the usual
way in the console by specifying background = FALSE.
startShinyItemAnalysis(background = TRUE, ...)run_app(background = TRUE, ...)
logical, should the application be run as a background process (in the 'RStudio')?
Arguments passed on to utils::install.packages
libcharacter vector giving the library directories where to
install the packages. Recycled as needed. If missing, defaults to
the first element of .libPaths().
reposcharacter vector, the base URL(s) of the repositories
to use, e.g., the URL of a CRAN mirror such as
"https://cloud.r-project.org". For more details on
supported URL schemes see url.
Can be NULL to install from local files, directories or URLs:
this will be inferred by extension from pkgs if of length one.
contriburlURL(s) of the contrib sections of the repositories. Use this
argument if your repository mirror is incomplete, e.g., because
you burned only the contrib section on a CD, or only have
binary packages. Overrides argument repos.
Incompatible with type = "both".
methoddownload method, see download.file. Unused if
a non-NULL available is supplied.
availablea matrix as returned by available.packages
listing packages available at the repositories, or NULL when
the function makes an internal call to available.packages.
Incompatible with type = "both".
destdirdirectory where downloaded packages are stored. If it is
NULL (the default) a subdirectory
downloaded_packages of the session temporary
directory will be used (and the files will be deleted
at the end of the session).
dependencieslogical indicating whether to also install
uninstalled packages which these packages depend on/link
to/import/suggest (and so on recursively).
Not used if repos = NULL.
Can also be a character vector, a subset of
c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances").
Only supported if lib is of length one (or missing),
so it is unambiguous where to install the dependent packages. If
this is not the case it is ignored, with a warning.
The default, NA, means
c("Depends", "Imports", "LinkingTo").
TRUE means to use
c("Depends", "Imports", "LinkingTo", "Suggests") for
pkgs and
c("Depends", "Imports", "LinkingTo") for added dependencies:
this installs all the packages needed to run pkgs, their
examples, tests and vignettes (if the package author specified them
correctly).
In all of these, "LinkingTo" is omitted for binary packages.
typecharacter, indicating the type of package to download and
install. Will be "source" except on Windows and some macOS
builds: see the section on ‘Binary packages’ for those.
configure.args(Used only for source installs.) A character vector or a named list.
If a character vector with no names is supplied, the elements are
concatenated into a single string (separated by a space) and used as
the value for the --configure-args flag in the call to
R CMD INSTALL. If the character vector has names these
are assumed to identify values for --configure-args for
individual packages. This allows one to specify settings for an
entire collection of packages which will be used if any of those
packages are to be installed. (These settings can therefore be
re-used and act as default settings.)
A named list can be used also to the same effect, and that allows multi-element character strings for each package which are concatenated to a single string to be used as the value for --configure-args.
configure.vars(Used only for source installs.) Analogous to configure.args
for flag --configure-vars, which is used to set environment
variables for the configure run.
cleana logical value indicating whether to add the
--clean flag to the call to R CMD INSTALL.
This is sometimes used to perform additional operations at the end
of the package installation in addition to removing intermediate files.
Ncpusthe number of parallel processes to use for a parallel
install of more than one source package. Values greater than one
are supported if the make command specified by
Sys.getenv("MAKE", "make") accepts argument
-k -j Ncpus.
verbosea logical indicating if some “progress report” should be given.
INSTALL_optsan optional character vector of additional option(s) to be passed to
R CMD INSTALL for a source package install. E.g.,
c("--html", "--no-multiarch", "--no-test-load").
Can also be a named list of character vectors to be used as additional options, with names the respective package names.
quietlogical: if true, reduce the amount of output. This is not
passed to available.packages() in case that is called, on
purpose.
keep_outputsa logical: if true, keep the outputs from installing source packages
in the current working directory, with the names of the output files
the package names with .out appended. Alternatively, a
character string giving the directory in which to save the outputs.
Ignored when installing from local files.
No return value. Called for side effects.
# NOT RUN {
startShinyItemAnalysis()
startShinyItemAnalysis(background = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab