R markdown 错误:knit 为 pdf,“xfun”版本
PDF 的 knit 过程停止并显示以下消息
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
安装的 xfun 版本是
packageVersion("xfun")
[1] ‘0.22’
这就是为什么我更新了这个包
install.packages("xfun", dependencies = TRUE)
Installing package into ‘.../R/library’
(as ‘lib’ is unspecified)
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xfun_0.30.zip'
Content type 'application/zip' length 399716 bytes (390 KB)
downloaded 390 KB
package ‘xfun’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\...\Temp\20\RtmpYB5uib\downloaded_packages
之后 xfun 的版本是
packageVersion("xfun")
[1] ‘0.30’
但是错误消息knit 过程保持不变
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
R 版本是
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.5
year 2021
month 03
day 31
svn rev 80133
language R
version.string R version 4.0.5 (2021-03-31)
nickname Shake and Throw
系统是带有 Windows 的 Citrix 桌面
benchmarkme::get_sys_details()
Loading required package: benchmarkme
$sys_info
$sys_info$sysname
[1] "Windows"
$sys_info$release
[1] "Server x64"
$sys_info$version
[1] "build 14393"
$sys_info$machine
[1] "x86-64"
$platform_info
$platform_info$OS.type
[1] "windows"
$platform_info$file.sep
[1] "/"
$platform_info$dynlib.ext
[1] ".dll"
$platform_info$GUI
[1] "RStudio"
$platform_info$endian
[1] "little"
$platform_info$pkgType
[1] "win.binary"
$platform_info$path.sep
[1] ";"
$platform_info$r_arch
[1] "x64"
$r_version
$r_version$platform
[1] "x86_64-w64-mingw32"
$r_version$arch
[1] "x86_64"
$r_version$os
[1] "mingw32"
$r_version$system
[1] "x86_64, mingw32"
$r_version$status
[1] ""
$r_version$major
[1] "4"
$r_version$minor
[1] "0.5"
$r_version$year
[1] "2021"
$r_version$month
[1] "03"
$r_version$day
[1] "31"
$r_version$`svn rev`
[1] "80133"
$r_version$language
[1] "R"
$r_version$version.string
[1] "R version 4.0.5 (2021-03-31)"
$r_version$nickname
[1] "Shake and Throw"
$ram
256GB
$cpu
$cpu$vendor_id
[1] "AuthenticAMD"
$cpu$model_name
[1] "AMD EPYC 7542 32-Core Processor"
$cpu$no_of_cores
[1] 12
谁能帮忙? 有人在 Citrix 环境中使用过 R 吗?
The knit process to PDF stopped with the following message
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
The installed version of xfun is
packageVersion("xfun")
[1] ‘0.22’
That's why I updated this package with
install.packages("xfun", dependencies = TRUE)
Installing package into ‘.../R/library’
(as ‘lib’ is unspecified)
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xfun_0.30.zip'
Content type 'application/zip' length 399716 bytes (390 KB)
downloaded 390 KB
package ‘xfun’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\...\Temp\20\RtmpYB5uib\downloaded_packages
After that the version of xfun is
packageVersion("xfun")
[1] ‘0.30’
But the error message of the knit process remains the same
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
The R version is
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.5
year 2021
month 03
day 31
svn rev 80133
language R
version.string R version 4.0.5 (2021-03-31)
nickname Shake and Throw
The system is a Citrix desktop with Windows
benchmarkme::get_sys_details()
Loading required package: benchmarkme
$sys_info
$sys_info$sysname
[1] "Windows"
$sys_info$release
[1] "Server x64"
$sys_info$version
[1] "build 14393"
$sys_info$machine
[1] "x86-64"
$platform_info
$platform_info$OS.type
[1] "windows"
$platform_info$file.sep
[1] "/"
$platform_info$dynlib.ext
[1] ".dll"
$platform_info$GUI
[1] "RStudio"
$platform_info$endian
[1] "little"
$platform_info$pkgType
[1] "win.binary"
$platform_info$path.sep
[1] ";"
$platform_info$r_arch
[1] "x64"
$r_version
$r_version$platform
[1] "x86_64-w64-mingw32"
$r_version$arch
[1] "x86_64"
$r_version$os
[1] "mingw32"
$r_version$system
[1] "x86_64, mingw32"
$r_version$status
[1] ""
$r_version$major
[1] "4"
$r_version$minor
[1] "0.5"
$r_version$year
[1] "2021"
$r_version$month
[1] "03"
$r_version$day
[1] "31"
$r_versionThe knit process to PDF stopped with the following message
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
The installed version of xfun is
packageVersion("xfun")
[1] ‘0.22’
That's why I updated this package with
install.packages("xfun", dependencies = TRUE)
Installing package into ‘.../R/library’
(as ‘lib’ is unspecified)
versuche URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/xfun_0.30.zip'
Content type 'application/zip' length 399716 bytes (390 KB)
downloaded 390 KB
package ‘xfun’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\...\Temp\20\RtmpYB5uib\downloaded_packages
After that the version of xfun is
packageVersion("xfun")
[1] ‘0.30’
But the error message of the knit process remains the same
namespace 'xfun' 0.22 is already loaded, but >= 0.29 is required
The R version is
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.5
year 2021
month 03
day 31
svn rev 80133
language R
version.string R version 4.0.5 (2021-03-31)
nickname Shake and Throw
The system is a Citrix desktop with Windows
svn rev`
[1] "80133"
$r_version$language
[1] "R"
$r_version$version.string
[1] "R version 4.0.5 (2021-03-31)"
$r_version$nickname
[1] "Shake and Throw"
$ram
256GB
$cpu
$cpu$vendor_id
[1] "AuthenticAMD"
$cpu$model_name
[1] "AMD EPYC 7542 32-Core Processor"
$cpu$no_of_cores
[1] 12
Can anyone help?
Has anyone experience with R in a Citrix environment?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论