Skip to content

Repeated use repeats attachments #251

@mmuurr

Description

@mmuurr

Error description

This is probably intentional (to guarantee precedence that aligns with order-of-use calls), but just in case it's not intentional, I figured it was worth pointing out.

box::use(tibble[tibble])  ## call 1
box::use(tibble[tibble])  ## call 2
search()
#  [1] ".GlobalEnv"        "mod:tibble"        "mod:tibble"        "ESSR"
#  [5] "package:stats"     "package:graphics"  "package:grDevices" "package:datasets"
#  [9] "renv:shims"        "package:utils"     "package:methods"   "Autoloads"
#  [13] "package:base"
ls(2)
#  [1] "tibble"
ls(3)
#  [1] "tibble"

... i.e. repeated uses simply repeat attachment (in this trivial example, unnecessarily).

Again, I can imagine cases where this is actually desirable (specifically to deal with naming conflicts), but just in case it's not expected, now you know :-)

R version

platform       x86_64-apple-darwin19.6.0
 arch           x86_64
 os             darwin19.6.0
 system         x86_64, darwin19.6.0
 status
 major          4
 minor          0.3
 year           2020
 month          10
 day            10
 svn rev        79318
 language       R
 version.string R version 4.0.3 (2020-10-10)
 nickname       Bunny-Wunnies Freak Out

‘box’ version

1.1.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions