Skip to content

Commit

Permalink
Update dev install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 30, 2023
1 parent 7842792 commit eb3d07a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ install.packages("lobstr")
You can install the development version with:

``` r
# install.packages("devtools")
devtools::install_github("r-lib/lobstr")
# install.packages("pak")
pak::pak("r-lib/lobstr")
```
## Example

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ install.packages("lobstr")
You can install the development version with:

``` r
# install.packages("devtools")
devtools::install_github("r-lib/lobstr")
# install.packages("pak")
pak::pak("r-lib/lobstr")
```

## Example
Expand Down Expand Up @@ -68,16 +68,16 @@ digging into the underlying \_\_ref\_\_erences:
x <- 1:1e6
y <- list(x, x, x)
ref(y)
#> █ [1:0x14de8eeb8] <list>
#> ├─[2:0x14f485ca0] <int>
#> ├─[2:0x14f485ca0]
#> └─[2:0x14f485ca0]
#> █ [1:0x1063ac468] <list>
#> ├─[2:0x11629ba38] <int>
#> ├─[2:0x11629ba38]
#> └─[2:0x11629ba38]

e <- rlang::env()
e$self <- e
ref(e)
#> █ [1:0x13e36d998] <env>
#> └─self = [1:0x13e36d998]
#> █ [1:0x1068a2218] <env>
#> └─self = [1:0x1068a2218]
```

A related tool is `obj_size()`, which computes the size of an object
Expand Down

0 comments on commit eb3d07a

Please sign in to comment.