RQDA batch file import not working - r

I am trying to import multiple files into RQDA like this:
#install.packages("RQDA")
library(RQDA)
#import list of files into program
files<-list.files("C:\\Users\\blah\\Desktop\\SNA_R_Class_code\\Texts")
RQDA()
setwd("C:\\Users\\blah\\Desktop\\SNA_R_Class_code")
openProject("me_classify_class_texts.rqda") #this is a completely empty project I just created
write.FileList(files)
When I look at the RDQA GUI it shows no project open, I get the following message in RStudio console: NA exists in the database!
When I manually start RQDA and open a project the run the final line of the code above I get the same result.
I can import files through the RQDA GUI fine however. What am I doing wrong with the command?

I needed to set a different file title for every file before it would import correctly

Related

Why do I keep getting an error when trying to import my file?

I'm trying to read csv file using R notebook and keep getting this error:
Error: 'Examples/data/starbucks.csv' does not exist in current
working directory ('C:/Users/c227466/Desktop')
I'm not sure what's going on!
This is the code I used:
starbucks <- read_csv("Examples/data/starbucks.csv")
starbucks
Your working directory is your desktop (which is not recommended). On your desktop, you should add a folder "Examples" and, in it, another folder "data" and your file there.

%run command to run .ipynb file forces .py extension

I am trying to execute a simple run command:
%run /WaterfallViz.ipynb
But no matter how I format it I keep getting the same error:
ERROR:root:File `'/WaterfallViz.ipynb.py'` not found.
How do I prevent the .py extension to insert itself at the end of the file name?
If you have moved the notebook file where you %run another notebook, unfortunately Jupyter will still reference to the original directory path.
To fix this behavior, simply:
save your notebook
create a new notebook
copy the content from the original notebook
open the new notebook file
The %run now should work as the "directory path" is the one you are expecting, and the .ipynb file will be picked up instead of trying to open a .py file too.
I was having the same issue and I found out other ways to import the notebook that avoid this error, without needing to follow all the process recommended before (creating a new notebook, etc).
You need to first install a library:
pip install import-ipynb
Then, import it in your notebook:
import import_ipynb
And finally you can import your file:
import WaterfallViz

Importing a JAR into SceneBuilder not working

I am using SceneBuilder-9.0.1 and trying to use JFoenix. While trying to import the jfoenix-9.0.1.jar with the JAR/FXML Manager (Library Managger), the following error appears:
I have no problems with importing FXML files though. The same error occurs if I try to import other JARs, e.g. controlsfx.
I think it's strange that the Scene Builder wants to copy the file into \Roaming\Scene Builder/Library because that's no valid file path, isn't it? Is there any way of coyping the file manually without using the Library Manager? And if yes, where do I need to copy the JAR file to? And is this a problem of SceneBuilder or of my PC?
Thanks in advance!

Import server imports automatically in meteor shell

How can I instruct meteor shell to automatically import '/imports/startup/server/index.js';
I want to have everything that's available on server, immediately available in the shell (collections, underscorejs, etc.)
I tried creating '/imports/startup/shell/index.js';, but that does nothing.
Files in /imports are not loaded by default, but files in /server are. Put your import code in, for example server/shell.js

Command Line to Open .py with IPython

I would like to use the great IPython Web Interface to open, evaluate, edit and save the following "myfile.py" (see below) avoiding the annoying process: Create an .ipynb > import myfile.py to it > make some evaluation or edition > export to .py > remove unnecessary code lines and finaly get again the following content (myfile.py):
import os
# <codecell>
# Number division
print(4/5)
# Number Plus
print(1+40)
Is there a command line to do so?
Notes:
I want work ONLY with .py files, any solution with store/work with .ipynb (JSON files) not be welcome.
Suggestions for other programs will be very welcome.
On stable version, use the --script flag, it always save .py file wihthout having to go through the export process. Still it also save the .ipynb file along side.
On dev version there are now pre-save hook that allows you to do whatever you want for saving .
To automatically load .py files, you will have to write your own Notebook File Loader backend that accept .py files.

Resources