address_path: Address

Description Usage Arguments Value Examples

Description

This transforms an address in the server to a path.

Transform a path to a server address sufix (after object@address)

Takes a path and transforms it into and address.

Takes a path and transforms it into a tree.

Usage

1
2
3
4
5
6
7
address2path(x, address = "file://", path = "")

path2address_sufix(x, address = "file://")

path2address(x, address = "file://")

path_tree(path, hide = FALSE)

Arguments

x

Path.

address

Server address, Default: 'file://'.

path

Path equivalent of the address, Default: ”.

hide

Make it collapsible, Default: FALSE.

Value

Path.

Path ready to go after 'address'.

Address.

Prints the tree.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
 if(interactive()){
  address2path("file://Groups/mypath/step")
  address2path(
    x = "https://my_website/Groups/mypath/step",
    address = "https://my_website/Groups",
    path = "/mnt/Groups"
  )
 }

## End(Not run)
## Not run: 
 if(interactive()) path2address_sufix("/mnt/Groups/mypath/step")

## End(Not run)
## Not run: 
 if(interactive()) path2address("/mnt/Groups/mypath/step")

## End(Not run)
## Not run: 
 if(interactive()) path_tree("~/Documents", hide = TRUE)

## End(Not run)

cramirezs/wreportr documentation built on Dec. 19, 2021, 6:09 p.m.