Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use R language to call data Interface in AkShare

Shulou Source: shulou.com Published: 2022-06-02 05:46:35 10月05日 Update

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

Tags: Data language small and medium interface motherboard code content methods more users user names computers shares problems helpless for this gem reasons skills Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Apple NVidia Microsoft MariaDB