Fei Xing posted on Wednesday, June 28, 2017 - 8:05 am
I am trying to view the scree plot using R in mac. I followed the instructions:
1. Download R for Windows from CRAN at http://cran.r-project.org/bin/windows/base/ and follow the installation instructions. 2. Download the R source code, mplus.R. 3. Open R. In Windows, go to Start -> Programs -> R. 4. Under the File menu, choose the Source R code… option. Browse to the folder with the mplus.R source code. Select the mplus.R file and click on the Open button. In the R Console window, the following lines will appear: > source("C:\MplusWork\Develop\Rdev\mplus.R")  "Loaded rhdf5 package"
When I read the lines above, I entered the code:
However, I always got the error message: "Error in file.exists(file) : object 'autonomy.gh5' not found"
I then change the working directory (because the file is on the desktop, i changed the working directory to the desktop), but still got the same error message. I have zero experience in using R. Could you please help me with this? Did I use the right code?