In a Jupiter notebook I got some csv from google drive links and then made some data visualizations. The code I used for getting the data is this:
!wget "https://firebasestorage.googleapis.com/v0/b/scrapper-6e7db.appspot.com/o/modified_publicationRecord_with_institute_no_depart.csv?alt=media&token=26fe21ba-1d5c-4599-895c-ac953de63ca1" -O "modified_publicationRecord_with_institute_no_depart.csv" !wget
In Jupyter it then downloads this and gets the csv. Now I have to do the same thing with Quarto in RStudio. If I enter the code in a python block it gives me some errors:
> reticulate::repl_python()
>>> ```{python}
File "<string>", line 1
```{python}
^
SyntaxError: invalid syntax
>>> # downloading dataset...
>>> !wget "https://firebasestorage.googleapis.com/v0/b/scrapper-6e7db.appspot.com/o/modified_publicationRecord_with_institute_no_depart.csv?alt=media&token=26fe21ba-1d5c-4599-895c-ac953de63ca1" -O "modified_publicationRecord_with_institute_no_depart.csv"
Warning: error in running command>>> !wget "https://firebasestorage.googleapis.com/v0/b/scrapper-6e7db.appspot.com/o/orcidxofs_2.csv?alt=media&token=42dfbaa2-cd60-43c8-8986-e0a75f5e28b1" -O "orcidxofs_2.csv"
sh: wget: command not found
sh: wget: command not found
Warning: error in running command>>> !wget "https://firebasestorage.googleapis.com/v0/b/scrapper-6e7db.appspot.com/o/groups_hierarchy.csv?alt=media&token=530bec2a-a881-4582-8713-e72f4b632592" -O "groups_hierarchy.csv"
sh: wget: command not found
Warning: error in running command>>> !wget "https://firebasestorage.googleapis.com/v0/b/scrapper-6e7db.appspot.com/o/resultDbMain.csv?alt=media&token=9ab74838-9f90-478b-8831-4a6b60b1b40d" -O "resultDbMain.csv"
sh: wget: command not found
Warning: error in running command>>> ```
File "<string>", line 1
```
^
SyntaxError: invalid syntax
>>>
>>> quit
> ``` python
Error: attempt to use zero-length variable name
So what's the problem with that.
I just entered the same code in a python code chunk in quarto and got an error. I also tried to delete the "``` python" since it seems that the error says that is not needed. But for sure this is needed.