vusaverse / vusa

A package with a collection of R functions
https://vusaverse.github.io/vusa/
Other
0 stars 2 forks source link

Running hash_var causes an error #4

Closed tkr231 closed 1 month ago

tkr231 commented 2 months ago

could not find function "check_installed_package" image

Tomeriko96 commented 1 month ago

Thank you for creating the issue. I've successfully reproduced the issue. Upon investigation, I've identified two key points:

  1. Implicit dependency: There appears to be an implicit assumption that the vvmover package is loaded using the library() function. This assumption may not always hold true and could be the root cause of the problem.

  2. Redundant package check: The check for the digest package in the code is unnecessary. The DESCRIPTION file of vusa already lists digest as an imported package, ensuring its availability when vusa is loaded.

Commit 09db5e438c90d015b3dec2c672de9f6e0934cb77 removes the redundant check.