box
box copied to clipboard
module shows up multiple times on the search path
Error description
Say I have a module called "foo/bar". From the global environment, if I import it twice via:
box::use(foo/bar[...])
box::use(foo/bar[...])
then there are now two entries on the search path called mod:foo/bar
. This happens regardless of whether I put a box::purge_cache()
in between.
Perhaps this is not a bug, but shall we say an infelicity? Could there be an option to prevent duplication on the search path, or at least alert the user?
R version
platform x86_64-koji-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 0.2
year 2020
month 06
day 22
svn rev 78730
language R
version.string R version 4.0.2 (2020-06-22)
nickname Taking Off Again
‘box’ version
1.1.3