Title: | 'Dat' Protocol Interface |
---|---|
Description: | Interface with the 'Dat' p2p network protocol <https://datproject.org>. Clone archives from the network, share your own files, and install packages from the network. |
Authors: | Chris Hartgerink [aut, cre] |
Maintainer: | Chris Hartgerink <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0.900 |
Built: | 2024-10-24 04:58:52 UTC |
Source: | https://github.com/libscie/datr |
Function to clone a Dat link to the machine.
clone_dat(link, dir)
clone_dat(link, dir)
link |
Dat link (always clones latest version now) |
dir |
Directory to clone to. If non-existent, will create. |
clone_dat(link = 'dat://datr-chris.hashbase.io', dir = tempdir())
clone_dat(link = 'dat://datr-chris.hashbase.io', dir = tempdir())
Checking the command to be passed to Dat system call
cmd_check(x)
cmd_check(x)
x |
Command to check |
Function to create a dat.json interactively, with title and description.
create_dat(dir = ".")
create_dat(dir = ".")
dir |
Directory to create Dat. Defaults to working directory. |
create_dat(dir = tempdir())
create_dat(dir = tempdir())
Download the released binaries for Dat and add them to your environment. If a more recent version has been released, you can specify it as argument (we try to update it accordingly, but might sometimes have time off!).
dat_install(os = "win", path, ver = "13.10.0")
dat_install(os = "win", path, ver = "13.10.0")
os |
'win' (Windows), 'mac', or 'linux' |
path |
Where to install Dat |
ver |
Version. See https://github.com/datproject/dat/releases |
NULL. Prints stdout of terminal along the way.
The system 'PATH' will be modified. On Linux-ish systems, ~/.profile
will also be modified.
## Not run: dat_install(os = 'win') dat_install(os = 'macos') dat_install(os = 'linux') ## End(Not run)
## Not run: dat_install(os = 'win') dat_install(os = 'macos') dat_install(os = 'linux') ## End(Not run)
Which version of Dat is installed?
dat_version()
dat_version()
Dat version string (if installed)
dat_version()
dat_version()
Interface with the 'Dat' p2p network protocol <https://datproject.org>. Clone archives from the network, share your own files, and install packages from the network.
Directly install an R package from a Dat link.
install_dat(link, dir)
install_dat(link, dir)
link |
Dat link |
dir |
Temporary directory to store download in. |
Console log.
## Not run: install_dat('dat://datr-chris.hashbase.io', dir = tempdir()) ## End(Not run)
## Not run: install_dat('dat://datr-chris.hashbase.io', dir = tempdir()) ## End(Not run)
Retrieve log of the Dat folder. You can either retrieve the
log of a Dat link (argument link
) or of a local Dat folder
(argument dir
). Defaults to giving the log of the working directory.
If a Dat link is provided, this overrides the dir
argument.
log_dat(path)
log_dat(path)
path |
Dat archive, can both be local or on the network. |
Console log.
log_dat(path = '.') log_dat(path = 'dat://pastedat-taravancil.hashbase.io')
log_dat(path = '.') log_dat(path = 'dat://pastedat-taravancil.hashbase.io')
Function to update working directory if it is a Dat folder. This function only receives updates.
pull_dat()
pull_dat()
pull_dat()
pull_dat()
Get some information Dat folder in the working directory. Includes: Dat link, the number of files, and the current version.
status_dat()
status_dat()
Console log.
## Not run: status_dat() ## End(Not run)
## Not run: status_dat() ## End(Not run)
Synchronize directory with the Dat network. If write access to the Dat is
available, this is equivalent to share_dat
. If read-only
access is available, this is equivalent to pull_dat
.
sync_dat()
sync_dat()
sync_dat()
sync_dat()