如何解决载入swirl包时出来的non-numeric argument to binary operator错误

本文介绍了在使用R语言载入swirl包时遇到'non-numeric argument to binary operator'错误的解决过程。尝试重新安装包并未解决问题,参考Stack Overflow上的解决方案也未能直接应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先是尝试重新安装swirl中对应的包:

> install_from_swirl("Statistical Inference")
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Problem with the SSL CA cert (path? access rights?)
> library(RCurl)
载入需要的程辑包:bitops

载入程辑包:‘RCurl’

The following object is masked from ‘package:swirl’:

    reset

> library(httr)
Warning message:
程辑包‘httr’是用R版本3.2.3 来建造的 
> set_config( config( ssl_verifypeer = 0L ) )
> install_from_swirl("Statistical Inference")
  |=============================================================================================================| 100%

| Course installed successfully!

> swirl()

| Welcome to swirl! Please sign in. If you've been here before, use the same name as you did then. If you are new,
| call yourself something unique.
解决了安装包的问题(安装可参考:——————————)

在尝试提交的过程中又出现了之前出现过的提示,可见问题并没有完全解决:


swirl()

| Welcome to swirl! Please sign in. If you've been here before, use the same name as you did then. If you are new,
| call yourself something unique.

What shall I call you? test

| Would you like to continue with one of these lessons?

1: Statistical Inference Power
2: No. Let me start something new.

Selection: 1

| Attempting to load lesson dependencies...

| Package ‘reshape2’ loaded correctly!

| Package ‘ggplot2’ loaded correctly!

Error in z * sigma : non-numeric argument to binary operator

| Leaving swirl now. Type swirl() to resume.

似乎没有什么好的办法(有在Stack Overflow上查到相关的问答,但是好像没法直接拿过来用)。



参考资料:

http://errorh.com/error-in-x-2-non-numeric-argument-to-binary-operator/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值