How to use R language to call data Interface in AkShare
It is believed that many inexperienced people have no idea about how to use R language to call data interface in AkShare. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Install the corresponding package in R language
Reticulate
Install.packages ("reticulate")
After the installation is complete, the
Library (reticulate)
Use_python ("/ usr/local/bin/python")
Call the local Python program, where usr needs to be replaced with the user name of your local computer.
Finally, we show a demonstration code that calls AkShare to get data in the R language through the reticulate package:
Library (reticulate) # Import reticulate package
Use_python ("/ king/local/bin/python") # where king is the local computer user name
Ak