I want to install the staplr
package but I got this error:
Installing package into ‘C:/Users/DELL/DATA/Documents/R/win-library/3.5’ (as ‘lib’ is
unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation staplr 2.9.0 3.1.1 FALSE
installing the source package ‘staplr’
trying URL 'https://cran.rstudio.com/src/contrib/staplr_3.1.1.tar.gz'
Content type 'application/x-gzip' length 4483778 bytes (4.3 MB)
downloaded 4.3 MB
- installing source package 'staplr' ...
** package 'staplr' correctement décompressé et sommes MD5 vérifiées
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices converting help for package 'staplr'
finding HTML links ... fini
get_fields html
idenfity_form_fields html
input_filepath html
output_filepath html
overwrite html
remove_pages html
rename_files html
rotate_pages html
rotate_pdf html
select_pages html
set_fields html
split_from html
split_pdf html
staple_pdf html
staplr html
** building package indices
** testing if installed package can be loaded
*** arch - i386 Error: package or namespace load failed for 'staplr': .onLoad failed in loadNamespace() for 'staplr', details: call: NULL
error: .onLoad failed in loadNamespace() for 'rJava', details: call:
fun(libname, pkgname) error: No CurrentVersion entry in
Software/JavaSoft registry! Try re-installing Java and make sure R and
Java have matching architectures. Erreur : le chargement a échoué
Exécution arrêtée
*** arch - x64 ERROR: loading failed for 'i386'
- removing 'C:/Users/DELL/DATA/Documents/R/win-library/3.5/staplr' In R CMD INSTALL Warning in install.packages : installation of package
‘staplr’ had non-zero exit status
The downloaded source packages are in
‘C:UsersDELLAppDataLocalTempRtmp8WD3YUdownloaded_packages’*
Anyone have an idea how to solve the problem?
question from:
https://stackoverflow.com/questions/65917059/cannot-install-the-staplr-package 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…