-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathremotesync.Rd
More file actions
67 lines (60 loc) · 1.73 KB
/
remotesync.Rd
File metadata and controls
67 lines (60 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/neuronlistfh.R
\name{remotesync}
\alias{remotesync}
\alias{remotesync.neuronlistfh}
\title{Synchronise a remote object}
\usage{
remotesync(
x,
remote = attr(x, "remote"),
download.missing = TRUE,
delete.extra = FALSE,
...
)
\method{remotesync}{neuronlistfh}(
x,
remote = attr(x, "remote"),
download.missing = FALSE,
delete.extra = FALSE,
indices = NULL,
update.object = TRUE,
...
)
}
\arguments{
\item{x}{Object to synchronise with a remote URL}
\item{remote}{The remote URL to update from}
\item{download.missing}{Whether to download missing objects (default TRUE)}
\item{delete.extra}{Whether to delete objects (default TRUE)}
\item{\dots}{Additional arguments passed to methods}
\item{indices}{Character vector naming neurons to update (default
\code{indices=NULL} implies all neurons).}
\item{update.object}{Whether to update the \code{neuronlistfh} object itself
on disk (default TRUE). Note that this assumes that the \code{neuronlistfh}
object has not been renamed after it was downloaded.}
}
\value{
The updated \code{neuronlistfh} object (invisibly)
}
\description{
Synchronise a remote object
}
\examples{
\dontrun{
kcs20=read.neuronlistfh('http://virtualflybrain.org/data/nblast/flycircuit/kcs20.rds')
# update object from the web
kcs20=remotesync(kcs20)
# download all neurons with significant innervation of the vertical lobe
mbvl_neurons=subset(kcs20, (MB_VL_R+MB_VL_L)>200, rval='names')
kcs20=remotesync(kcs20, indices=mbvl_neurons, download.missing=TRUE)
}
}
\seealso{
Other neuronlistfh:
\code{\link{[.neuronlistfh}()},
\code{\link{neuronlistfh}()},
\code{\link{read.neuronlistfh}()},
\code{\link{write.neuronlistfh}()}
}
\concept{neuronlistfh}