klmr / box

Write reusable, composable and modular R code
https://klmr.me/box/
MIT License
833 stars 47 forks source link

The box loading error #267

Closed honghh2018 closed 2 years ago

honghh2018 commented 2 years ago

Error description

Hi developer, The box r package can install successfully. But it would get error as loading it through library(box)

The error lying below: library(box) error: package or namespace load failed for ‘box’: attachNamespace()里算'box'时.onAttach失败了,详细内容: 调用: library(box) error: the ‘box’ package is not supposed to be attached!

Please consult the user guide at vignette(c(name = "box"), package = c(name = "box")). R version:4.0.2 How can i fix this issue? Best, Hanhuihong

R version

> R.version
               _                           
platform       x86_64-pc-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

box_1.1.0

klmr commented 2 years ago

Hi,

The ‘box’ package can’t be loaded via ‘library’. Instead, you call its functions by using the box::func() syntax; e.g. box::use().

As mentioned in the error message, please consult the user guide for instructions on how to use it.

honghh2018 commented 2 years ago

OK,thanks @klmr , how this function can obtain where the absolute path in R script ? like python built-in variable image

Best Hanhuihong