• Welcome to LiuJason's Blog!

标签:R语言

使用R语言计算坐标点到海岸线的距离|利用sf包

去年一个项目中的一段代码,分享出来给需要的同学。library(tidyverse)library(sf)library(data.table)#Read in registry agency list and convert the coordinatesregion_list <- na.omit(read.csv(fil……

Linux安装export包|解决package"export" is not available|R语言|CentOS7为例

前言export包在R里还是非常常用的,可以导出各种格式的文件非常方便。例如:graph2ppt导出PPT,graph2doc导出Word文档,table2excel导出到Excel表格,具体可以自己去帮助文档看:?graph2ppt?graph2doc?graph2svg?graph2png?table2ppt?table2……

[已解决]CentOS7下安装rjags失败 installation of package ‘rjags’ had non-zero exit status

问题CentOS7下安装rjags失败 installation of package ‘rjags’ had non-zero exit status详细报错> install.packages("gbs2ploidy", dependencies=TRUE)also installing the dependenc……

CentOS7下一键安装指定R版本的Rstudio-Server|4.0.0|3.6.3

一键代码不多说了直接上,以root用户权限执行以下代码:wget https://git.io/JfK3B -v -O install.sh && ./install.sh; rm -rf install.sh小广告非常棒的Rstudio云服务器,价格也超便宜的:https://my.cloudraft.cn/server/……

[已解决]R语言中V8包安装失败Configuration failed to find the libv8 engine library

问题R语言中V8包安装失败,报错:解决方案安装依赖包:sudo apt install libv8-dev -y……

[已解决]R语言中jqr包安装失败Configuration failed because libjq was not found.

问题描述R语音中jqr包安装失败,具体报错:解决方案安装依赖环境,以Ubuntu为例:sudo apt install libjq-dev -y……

[已解决]Ubuntu18.04安装rgdal sf失败 configure: error: gdal-config not found or not executable

问题Ubuntu18.04安装rgdal sf失败,报错:configure: CC: gcc -std=gnu99configure: CXX: g++ -std=gnu++11checking for gdal-config... nonoconfigure: error: gdal-config not found or not……

Ubuntu18.04安装Shiny-Server并配置git/Nginx SSL/监听端口IP

前言Ubuntu对比CentOS虽然更臃肿了一些,但是在易用性上的确是好一些。至少在我用到的依赖包中(如gdal等)CentOS7的支持并不算太好,很多包都要自己手动编译和配置。由于ShinyServer也要安装很多的包,所以如果临时配置一台Shiny服务器的话,我选择Ubuntu18.04。如果要在CentOS下安装ShinyServer,请查看这里……

Ubuntu18.04安装最新版本R (3.6.2) | 使用官方稳定版R源repo

前言Ubuntu自带的官方源一直是有长时间的发布延迟的,因此即使是R已经稳定版本发布到3.6.2了,官方源依旧是3.4版本....这里使用R的官方repo进行安装,实现Ubuntu18.04下安装最新稳定版的R(3.6.2)如果要在CentOS下安装ShinyServer,请查看这里:https://www.liujason.com/article/4……

Ubuntu18.04安装最新R3.6+Rstudio-Server并使用Nginx开启SSL加密

前言实在受不了国内容器云的访问速度,于是在德国节点打算新建一个Rstudio服务器自用。之前尝试用CentOS8,发现自己常用的地理信息包GDAL无法支持,因此还是换用Ubuntu18.04。安装R的依赖环境由于Ubuntu自带的源R版本更新太慢了,所以这里用rstudio的源sudo apt-key adv --keyserver keyser……