首先是尝试重新安装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/