best-practice-and-impact / afcharts

https://best-practice-and-impact.github.io/afcharts/
Other
14 stars 2 forks source link

Error installing package #26

Closed JT-39 closed 2 days ago

JT-39 commented 1 week ago

Hi,

I am trying to install the package but getting errors from CRAN and Github.

From cran

> install.packages("afcharts")
Error: package 'afcharts' is not available
Traceback (most recent calls last):
18: install.packages("afcharts")
17: eval(call, envir = parent.frame())
16: eval(call, envir = parent.frame())
15: renv::install("afcharts")
14: retrieve(packages)
13: handler(package, renv_retrieve_impl(package))
12: renv_retrieve_impl(package)
11: withCallingHandlers(renv_available_packages_latest(package), 
        error = function(err) stopf("package '%s' is not available", 
            package))
10: renv_available_packages_latest(package)
 9: map(errors$data(), warning)
 8: lapply(x, f, ...)
 7: FUN(X[[i]], ...)
 6: withRestarts({
        .Internal(.signalCondition(cond, message, call))
        .Internal(.dfltWarn(message, call))
    }, muffleWarning = function() NULL)
 5: withOneRestart(expr, restarts[[1L]])
 4: doWithOneRestart(return(expr), restart)
 3: <condition-handler>(...)
 2: stopf("package '%s' is not available", package)
 1: stop(sprintf(fmt, ...), call. = call.)

From GitHub:

remotes::install_github(
+     "best-practice-and-impact/afcharts",
+     upgrade = "never",
+     build_vignettes = TRUE
+ )
Using GitHub PAT from the git credential store.
Downloading GitHub repo best-practice-and-impact/afcharts@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\xxxx\AppData\Local\Temp\RtmpAXfKGC\remotes8eec37b9f4f\best-practice-and-impact-afcharts-30838ec/DESCRIPTION' (361ms)
─  preparing 'afcharts':
✔  checking DESCRIPTION meta-information
─  installing the package to build vignettes
E  creating vignettes (6.8s)
   --- re-building 'accessibility.Rmd' using rmarkdown
   --- finished re-building 'accessibility.Rmd'

   --- re-building 'colours.Rmd' using rmarkdown

   Quitting from lines  at lines 64-65 [unnamed-chunk-2] (colours.Rmd)
   Error: processing vignette 'colours.Rmd' failed with diagnostics:
   there is no package called 'gt'
   --- failed re-building 'colours.Rmd'

   --- re-building 'cookbook.Rmd' using rmarkdown

   Quitting from lines  at lines 34-41 [load-packages] (cookbook.Rmd)
   Error: processing vignette 'cookbook.Rmd' failed with diagnostics:
   there is no package called 'gapminder'
   --- failed re-building 'cookbook.Rmd'

   --- re-building 'saving.Rmd' using rmarkdown
   --- finished re-building 'saving.Rmd'

   SUMMARY: processing the following files failed:
     'colours.Rmd' 'cookbook.Rmd'

   Error: Vignette re-building failed.
   Execution halted
Error: Failed to install 'afcharts' from GitHub:
  ! System command 'Rcmd.exe' failed
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir, restore_times) :
  skipping pax global extended headers
Olivia-Box-Power commented 2 days ago

@JT-39 Hi Jake. Install instructions for installing from github have now been updated in the README. Could you please try installing again and see if it now works? afcharts only went onto CRAN last week so it may not have been available when you last tried to install from there.