Skip to content

Commit

Permalink
Use code from staticimports as the MIT license is compatible with BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Aug 30, 2024
1 parent 7a59fa4 commit 9c15ceb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# - `is_installed()`
# - `get_package_version()`
# - `system_file_cached()`
# were sourced from the shiny package version 1.8.0, available at
# <https://github.com/rstudio/shiny>.
# were sourced from the staticimports package version 0.0.0.9001, available at
# <https://github.com/wch/staticimports>.
#
# For the original version of these functions, please see:
# <https://github.com/rstudio/shiny/blob/v1.8.0/R/staticimports.R>.
# <https://github.com/wch/staticimports/blob/35ceec8d9d9429d9244aedc3ee6a1e8d62d59f79/inst/staticexports/package.R>.
#
# The shiny package is licensed under the GNU General Public License version 3.
# The staticimports package is licensed under the MIT license.
# For more details on the license, see
# <https://github.com/rstudio/shiny/blob/main/LICENSE>.
# <https://github.com/wch/staticimports/blob/35ceec8d9d9429d9244aedc3ee6a1e8d62d59f79/LICENSE.md>.

is_installed <- function(pkg, version = NULL) {
installed <- isNamespaceLoaded(pkg) || nzchar(system_file_cached(package = pkg))
Expand Down

0 comments on commit 9c15ceb

Please # to comment.