modLand {ProTrackR} | R Documentation |
ModLand helper functions
Description
https://modland.com is on of the largest online archive of module files. These functions will assist in accessing this archive.
Usage
modLand.search.mod(search.text)
modLand.download.mod(
format,
author,
title,
mirror = c("modland.com", "ftp.modland.com", "antarctica.no", "ziphoid.com",
"exotica.org.uk"),
...
)
Arguments
search.text |
A single length |
format |
A single length |
author |
A single length |
title |
A single length |
mirror |
A single length |
... |
Argument that are passed on to |
Details
Like the https://modarchive.org, modland provides access to a large collection of module files. Compared to the modArchive, modLand provides limited searching features. However, it does not require an API key.
The functions documented here are provided as a convenience and depend on third party services. Note that continuity of these services cannot be guaranteed.
Use modLand.search.mod
to search through the modLand collection.
Use modLand.download.mod
to download a specific mod file as an S4 object.
Value
modLand.search.mod
returns a data.frame
.
The data.frame
contains a search result in each row.
The data.frame contains a number of columns, each containing
character
strings. The column title' contains the mod file name; The column named
author' contains the author name; the column named
format' contains the tracker file format (only ``Protracker
'
is supported by this package); The collumn collect' contains modLand collections in which the mod is included; the column named
url' contains a download link for the ogg'-file generated on the modLand server from the mod file. Note that ogg-files are not supported by the ProTrackR package. Use
modLand.download.mod' to download
the mod file.
modLand.download.mod
attempts to download the specified mod
file and return it as a PTModule
object. It will throw
errors when the mod file is not available or when there are network
problems...
Author(s)
Pepijn de Vries
Examples
## Not run:
## Search for a funky tune:
modland <- modLand.search.mod("elekfunk mod")
## The ogg file can be downloaded (in this case to the tempdir()),
## but it is not supported by the ProTrackR package...
utils::download.file(modland$url[1], tempdir())
## Instead, use the following approach to download the module:
mod <- modLand.download.mod(modland$format[1],
modland$author[1],
modland$title[1])
## End(Not run)