在VisualStudio2017中尝试使用RProvider for F#时出现了一个错误。
我在尝试加载包ggplot2时发现了这个问题:
module ggplot2Program
open System
open RProvider
open RProvider.ggplot2
当我尝试这样做,然后尝试使用ggplot2库下的RProvider.ggplot2.R
我只需在RProvider的日志文件中获得以下错误消息:
06/02/2018 22:05:16在队列中添加工作项
06/02/2018 22:05:16服务器事件循环: got工作项
06/02/2018 22:05:
我之前使用过ggplot2,事实上,当这个问题出现时,我正在使用这个包。
我更新了我所有的包,发现我不能再访问基本的包(ggplot2,tidyvers,dplyr等)。当我尝试通过install.packages("ggplot2")安装软件包时,我收到下面附加的错误消息。
然后,我继续将该库与library(ggplot2)一起使用,并且部署了错误消息"there is no package called ‘ggplot2’"。我使用的是R版本3.5.1和R studio 1.1.423。我使用的是Mac10.12.6版(macOS西拉),出于其他原因使用了
尝试安装ggplot2时出现以下错误:
> install.packages("ggplot2")
Installing package(s) into ‘/home/dodo/R/x86_64-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Warning message:
In getDependencies(pkgs, de
我写了以下代码 install.packages('ggplot2', dep = TRUE)
.libPaths(c("C:/Users/Dhanu/Documents/R/win-library/3.3", "C:/Program Files/R/R-3.3.3/library"))
library(ggplot2) 在安装ggplot2库之后,它会给我以下错误。 > library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’
如何在码头容器中安装ggplot2 2.2.1?
命令行
RUN R -e "install.packages('devtools', repos='http://cran.rstudio.com/')"
RUN R -e "devtools::install_github('http://github.com/tidyverse/ggplot2/archive/v2.2.1.tar.gz')"
在Dockerfile中给出了错误:
The command '/bin/sh -c R -r "dev
我是R的新手,我在下面的教程中找到了ggplot2包,找到了。但是,每当我试图加载基本的shapefile时,readShapePoly()函数都会抛出一个错误。我使用了以下代码:
library("ggplot2")
library("gpclib")
library("maptools")
setwd("~/Documents/R Projects/Intro to ggplot2")
#Intro to ggplot 2 contains the .shp file and associated data
sport &l
我目前正在Windows上运行RVersion3.4.2,并拥有ggplot2 (通过tidyverse)和sf软件包3.4.2版本。我正在尝试使用ggplot2 sf工具包来映射空间数据。
当试图运行geom_sf时,我会收到一个错误:could not find function "geom_sf"。
当我使用ggplot2搜索ls("package:ggplot2")包时,库文件中没有列出geom_sf。
我安装了devtools并运行了devtools::install_github("tidyverse/ggplot2")。但是,我收到
我正在运行一个R代码(不是我的),它旨在读取目录并绘制一个图表:
library(ggplot2)
dat <- at <- read.table(file="User/alexanderzamani/Documents/results.txt",
sep = "\t", header= TRUE)
#let's just look at a single mutation rate
r <- dat[which(dat$u==0.00010),]
#now let's p
我在Mac上工作,使用的是R的3.6.3版本,使用的是renv。在Rstudio和R中,我可以加载我安装的软件包的库,例如library(ggplot2) works。但是,当我使用Rscript运行脚本时,我收到以下消息 Error in library(ggplot2) : there is no package called ‘ggplot2’ 根据这个所以answer,我需要确保 Sys.getenv('R_LIBS_USER') in R.exe 的值与 Rscript.exe -e ".libPaths()" 但是值是相同的,两者都指向我的项目文件
我试图在R中学习更多关于预测的知识,但我似乎找不到安装预测软件包的方法,这真的很令人沮丧。任何帮助都是非常感谢的。我试过了
install.packages("forecast")
install.packages('forecast', dependencies = TRUE)
但是没有一个是有效的
当我运行install.packages('forecast')时,它给我几次这个错误
Error in readRDS(file) :
cannot read workspace version 3 written by R 4.0.2;
我是R的新手,我只是试着通过一些教程。
当我尝试安装ggplot2时,会发现这个错误。
Error in library(ggplot2) : There is no package called 'ggplot2'
我在R和RStudio上试过这些。
install.packages("ggplot2", dep=T)
install.packages('ggplot2', repos='http://cran.us.r-project.org')
remove.packages("ggplot2")
但我明
我有一个foo.R文件,其中包含
library("ggplot2")
cat("Its working")
我试图使用Rscript命令Rscript --default-packages=ggplot2 foo.R通过命令行运行foo.r,这给了我以下错误:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘ggplot2’
2: package ‘ggplot2’ i