我正在使用以下代码加载多个软件包。
!=
它会在加载消息后打印
.Select(p => new ProductViewModel()
{
Id = p.id,
Name = p.name,
Description = p.description,
Rating = p.rating,
Price = p.offer != null ? p.offer.sale_price : p.price
});
我尝试了Packages <- c("gridExtra", "scatterplot3d", "plot3D", "gridExtra", "plyr", "ggplot2", "magrittr", "reshape2", "data.table")
lapply(Packages, library, character.only = TRUE)
和## [[1]]
## [1] "gridExtra" "stats" "graphics" "grDevices" "utils" "datasets"
## [7] "methods" "base"
##
## [[2]]
## [1] "scatterplot3d" "gridExtra" "stats" "graphics"
## [5] "grDevices" "utils" "datasets" "methods"
## [9] "base"
##
## [[3]]
## [1] "plot3D" "scatterplot3d" "gridExtra" "stats"
## [5] "graphics" "grDevices" "utils" "datasets"
## [9] "methods" "base"
##
## [[4]]
## [1] "plot3D" "scatterplot3d" "gridExtra" "stats"
## [5] "graphics" "grDevices" "utils" "datasets"
## [9] "methods" "base"
##
## [[5]]
## [1] "plyr" "plot3D" "scatterplot3d" "gridExtra"
## [5] "stats" "graphics" "grDevices" "utils"
## [9] "datasets" "methods" "base"
##
## [[6]]
## [1] "ggplot2" "plyr" "plot3D" "scatterplot3d"
## [5] "gridExtra" "stats" "graphics" "grDevices"
## [9] "utils" "datasets" "methods" "base"
,但没有解决问题
suppressWarnings
我查看了这些STO帖子,但它们没有帮助enter link description here enter link description here
答案 0 :(得分:1)
此“消息”是lapply
命令的返回值。如果您不想看到此信息,请将结果分配给变量。
x <- lapply(Packages, library, character.only = TRUE)