R crashes when trying to load CSV file - read.csv

When I try to read a CSV file using
read.csv(file="/Users/User1/Documents/file.csv", header=T)
it says no file path exists. This command works with the same file when I tried it on a different computer.
So I tried read.csv(file.choose()), but this just freezes my console. This command works on the other computer with the same file.
I uninstalled and reinstalled the program and even tried an older version of R, but the problem persists.
I cannot change my working directory either. setwd() also freezes the console.
Has anyone had this same problem?

From my experience, I have faced the same problem while having a big chunk of data. The loading process also creates pressure on the computer so you need to check your ram, storage and the processor of your computer. So, I'll recommend you to work on python, otherwise, you can have a try with the h2o server. Google about how to do the analysis using the h2o server in R. It may also work.

Related

InfluxDB, Can I use the database files from an old installation, where raspbian chrashed during an update, on a new installation?

When updating raspbian on my PI3 some package failed and after that, reboot failed.
The green led doesn't even give a "blink" and nothing on the screen.
So I think I have to reinstall it. But then the whole card will be formatted.
As I have some measurements on the card I want to know if there is a way to restore the database on a new installation.
The card seems ok as I can read all files on it. I just have to copy /var/lib/influxdb to another computer.
But is it then possible to restore the data to a new installation?
Well, I solved it.
I copied the influx directory (recursively)to another computer.
I installed a new OS on my PI3.
I copied the directory, again recursively, to /var/lib/on the new OS.
I Installed influxdb and started InfluxDB. Voila! The data was there!
Happy I am.
Thank's for watching!

Errors running programs on secondary drive

I'm going insane trying to figure this out. I've installed windows 10 on a WD Black SN850 Nvme. No issues here. I then have another nvme with a larger size I got after that I decided to use to install programs.
I seem to be able to install programs just fine on the secondary drive, but they start to error out trying to run them. I completely replaced the 2ndary nvme with a new one, reinstalled windows on the main nvme but get this same frustrating situation. Permissions on folders are set to full access, I can open simple text files on the 2ndary drive just fine. However, running exe or other program types returns an unable to access error.
Is there something I'm missing for the nvme set up? The fact I can partition the drives and use them as normal leads me to believe they are configured correctly. Not to mention I completely swapped out the 2nd nvme with a brand new one. I also ran bios tests for the drives and came back with no errors. I also checked the drivers/bios updates for the board and made sure it was up to date. Any programs installed on the main drive are also running just fine without issue.
I also popped in a few regular ssd, installed programs on them and also have no issues running them.
This is super frustrating and I can't figure out why the 2ndary nvmes I use are consistently getting errors running any programs installed on them.
Any advice on what else to check would be great appreciated.

Problems with Octave on Windows 8: crashes after any error

I have installed (and re-installed) Octave 3 times on Windows 8, and I still can't get it right. The first and most obvious problem is that the prompt is missing; the screen only shows the flashing underscore that follows the prompt. This is not a major problem since the system properly responds to commands.
The major problem is that Octave crashes whenever it encounters a syntax error, instead of politely giving a diagnostic. This makes for extremely tedious software development.
Is there a way around this problem, or do we just have to wait for one side or the other to come up with an accommodation?
I encountered the same problem. I solved it by this:
create a shortcut to octave.exe, then right click->property-> change the "target" to something like:
C:\Program Files\Octave\Octave3.6.*_gcc*.*.*\bin\octave.exe -i --line-editing
Then it won't exit if u have syntax errors.
I don't understand the meaning of the parameters yet.
reference:
http://exciton.eo.yzu.edu.tw/~lab/?p=1121
Type octave --help can check the meaning of parameters.
-i also --interactvie, to force Octave interactive behavior.
Maybe Octave run at non-interactive mode at default, that means prompt should not be shown and it should terminate immediately when encountered error when reading a file.
I don't know if this will solve your problem, or if this is too bloated of a solution for you, but I use Octave on Windows 7 through Cygwin without any problems.
If you can't get Octave to run on Windows 8, you may consider running Octave through Linux via computer virtualization technology (virtual computer). Two, off the top of my head that you could use are VirtualBox by Oracle or VMWare Player
Once you have it installed, you can go to any number of sites that have pre-built Linux images that you can download and then run inside of Windows 8.X. Do a Google search of for 'Virtualbox images' or as 'VMWare appliances'. You can then download and use that to run the lastest version of Octave. I hope that helps.
Cheers,

Autorun.inf on a usb can you get it to run a pdf?

I've done some research all over the net, I guess I am just looking for conformation.
Due to how Microsoft has put security on autorun in vista and above. Autorun from a usb no longer works. Correct? It seems like it will still bring up the options to run .exe but for some odd reason I cannot get it to run a .pdf. This site has suggested that I load up a pdf reader and run that and then call it to run the pdf. But a generic pdf reader would still have to go through the install prior to running it, something I am trying to avoid.
The other idea I came up with was cause of this specialty usb manufactures have stated that they their usb drives can autorun files because they are formated to be local disks.
So after some experimenting and doing this I converted my usb to a local to see if that would work and pasting the autorun.inf in there with the correct code...
[AutoRun]
shellexecute=mypdf.pdf
icon=mypdf.ico
label=mypdf
sadly it does't work
Also after thinking about it creating a local disk would only work with the driver software that I loaded up onto that usb... so say it is a 64bit and the client has a 32bit it wont run. (right?)
Can someone just confirm that there is no way to autorun a pdf from a usb? or even have it as an option to select from when it is plugged in for the first time. I cannot believe I have spent an entire day trying to just get autorun to work.
Thanks for taking the time to read this nub question
Try using a PDF viewer which does not require installation, eg:
http://www.snapfiles.com/get/sumatrapdf.html
From this site:
http://www.snapfiles.com/features/ed_usb_software.html
Using sumatraPDF portable installation you can launch that from the flash drive.
The way I did it is by creating autorun.inf with the following:
[autorun]
icon=autorun.ico
label=Label for Drive
action=Action Description
open=autorun.bat
And a autorun.bat file with the following:
start SumatraPDF.exe ../pdfname.pdf
However, if the user has autorun turned off it will not work and in Windows 7 and above autorun functionality for flash drives is restricted to label and icon only.

devcon on windows 7 - remove drivers

I have a problem using devcon.exe in Windows 7 for the purpose of removing drivers, it worked fine in Windows XP. However, I can't remove the drivers using "dp_delete" and "Remove" in Windows 7.
Anyone has an idea why it might happen?
Thanks.
Download the “Windows Driver Kit (WDK) 7.1.0″ from MS, it is an ISO image several hundreds meg
Using UniversalExtractor (http://legroom.net/software/uniextract), extract the ISO to a temporary directory.
Again using UniversalExtractor, extract the install file "WDK\setuptools_x64fre.msi" to a temporary directory.
In that temporary directory you will find "WinDDK\7600.16385.win7_wdk.100208-1538\tools\devcon\amd64\devcon.exe". This devcon works fine under W7x64 Pro.
Along the way UniversalExtractor will prompt you with some warnings, just click OK.
(source)
Just an idea for another one that have the same issue and can migrate it: you can use wmic instead devcon. Its work better and it's Query Oriented Language (WMI)