Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install without 'knitr' - move to Depends? #109

Open
tmelliott opened this issue Jul 20, 2023 · 1 comment
Open

Unable to install without 'knitr' - move to Depends? #109

tmelliott opened this issue Jul 20, 2023 · 1 comment

Comments

@tmelliott
Copy link
Contributor

I see the 'knitr' package is listed under suggests, but when installing from source I get:

> install.packages("expss")
Installing package into/home/tom/R/x86_64-pc-linux-gnu-library/4.2’
(aslibis unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/expss_0.11.6.tar.gz'
Content type 'application/x-gzip' length 5004737 bytes (4.8 MB)
==================================================
downloaded 4.8 MB

* installing *source* packageexpss...
** packageexpsssuccessfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package calledknitrCalls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for packageexpss* removing/home/tom/R/x86_64-pc-linux-gnu-library/4.2/expss* restoring previous/home/tom/R/x86_64-pc-linux-gnu-library/4.2/expss

However if I install knitr, it works fine, so I assume it's related to NAMESPACE exports and 'knitr' probably should be moved to Depends?

R output
> install.packages("knitr")
Installing package into ‘/home/tom/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/knitr_1.43.tar.gz'
Content type 'application/x-gzip' length 895054 bytes (874 KB)
==================================================
downloaded 874 KB

* installing *source* package ‘knitr’ ...
** package ‘knitr’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (knitr)

The downloaded source packages are in
	‘/tmp/RtmpwAgsRg/downloaded_packages’

> install.packages("expss")
Installing package into ‘/home/tom/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/expss_0.11.6.tar.gz'
Content type 'application/x-gzip' length 5004737 bytes (4.8 MB)
==================================================
downloaded 4.8 MB

* installing *source* package ‘expss’ ...
** package ‘expss’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (expss)

The downloaded source packages are in
	‘/tmp/RtmpwAgsRg/downloaded_packages’
@gdemin
Copy link
Owner

gdemin commented Jul 20, 2023

Thanks, I will check it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants